View Full Version : Mathematica help
Hi, I'm using NSolve in Mathematica but I only want to find the roots that are real numbers as my answer gives a lot of imaginary numbers. How can I do this?
I want to then plot a birfucation diagram using a table of data. Is there a function to do this?
Thanks!
Bill Simpson
Sep19-10, 09:22 PM
In[1]:=x /. NSolve[(x - 1)(x^2 + 3)(x^4 + 5) == 0, x]
Out[1]={-1.05737 - 1.05737*I, -1.05737 + 1.05737*I, -3.81167*^-27 - 1.73205*I,
-3.81167*^-27 + 1.73205*I, 1., 1.05737 - 1.05737*I, 1.05737 + 1.05737*I}
In[2]:=Cases[x /. NSolve[(x - 1)(x^2 + 3)(x^4 + 5) == 0, x], _Real]
Out[2]={1.}
http://search.wolfram.com/?query=bifurcation&x=5&y=4
can anyone help me with this question? please look at link...
http://www.physicsforums.com/showthread.php?t=434501
thanks
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.