| Author |
Comment/Response |
ray
|
10/06/10 5:18pm
My first attempt at FindRoot resulted in:
FindRoot::nlnum: The function value {x1,x2,x3} is not a list of numbers with dimensions {3} at {x,y,z} = {1.,2.,3.}. >>
But when I inputted the equations directly in got at answer. What did I do wrong with the substitution???
x1[x_, y_, z_] = x + y + z == 6;
x2[x_, y_, z_] = Sin[x] + Cos[y] + Tan[z] == 1;
x3[x_, y_, z_] = E^x + Sqrt[y] + 1/z == 5;
FindRoot[{x1, x2, x3}, {x, 1}, {y, 2}, {z, 3}]
FindRoot[{x + y + z == 6, Sin[x] + Cos[y] + Tan[z] == 1,
E^x + Sqrt[y] + 1/z == 5}, {x, 1}, {y, 2}, {z, 3}]
URL: , |
|