I am trying to investigate the effect of a parameter on a curve using Manipulate
. See below.
F[y_, x_, a_, b_] := a*x^2 + b*x + y^2 + 1;
X = Table[i, {i, 0.1, 4, 0.01}];
Manipulate[
Subscript[y, 01] = Quiet[y/.Solve[F[y, 0.1, 0, b] == 0, y][[1]]];
Subscript[y, 1] = Table[sol = y/. FindRoot[F[y, x, 0, b] == 0, {y,Subscript[y,01]}];
Subscript[y, 01] = sol, {x, 0.1, 4, 0.01}];
ListLinePlot[Transpose[{X, Subscript[y, 1]}]], {b, 0, 0.5}]
Message: Recursion depth of 1024 exceeded during evaluation of
The code runs perfectly fine for the first few minutes. However, when it reaches b = 0.33 (an approximate value), the code runs indefinitely.
What could be the cause, and how can I fix it?
Thank you in advance.