I know this has been asked, but I cannot seem to understand the solutions. What I need to know, because I have my first domiciliary test this Monday, is how to plot the output from FindRoot
for a system of equations as the parameters vary
I havent even been able to do it with one equation either
Say I have define
g[x_, y_] := 2 x + y
I can define the function
t[y_] := FindRoot[g[x, y], {x, 1}]
Wich does give me an answer for different y, but when I plot
Plot[t[x], {x, 0, 1}]
It wont do anything. I mean, the axis appear but nothing will be drawn on it.
If I had a system of equations, FindRoot
would give several values, say {x, y}
.
How can I draw x[d]
, y[d]
, where this last two are the roots of FindRoots for different values of parameter d
?
Thank you very much and I am very sorry if this is really simple but I havent been able to solve it.
{}
button above the edit window. The edit window help button?
is also useful for learning how to format your questions and answers. $\endgroup$FindRoot
? You may find some help there. $\endgroup$t[y_?NumericQ] := ...
. See mathematica.stackexchange.com/questions/18393/… for more information. -- oh, and be sure toClearAll[t]
before trying the?NumericQ
fix. -- and thanks for editing the question. $\endgroup$