I am having some problem while plotting the data being generated in for loop My aim is to plot the result of for loop while it is solving the equation for each value of w,i.e. plot between w and x
Here is the minimum working example
For[w = 0.9925, w < 1.0075, w += 0.0015,
Plot[Solve[{x^6 + x^4 + w*x^2 == 0 , x > 0}, x, Reals], {w}]
]
For[w = 0.9925, w < 1.0075, w += 0.0015, Print[Solve[{x^6 + x^4 + w*x^2 == 0, x > 0}, x, Reals]] ]
then it gives no solution for all values. $\endgroup$ – Nasser Jul 29 '20 at 8:05For
&Do
loops have no output. PerhapsTable
is a better. See also mathematica.stackexchange.com/questions/134609/… -- I'll let the answer speak to how to useSolve
andPlot
. $\endgroup$ – Michael E2 Jul 29 '20 at 12:29