Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Solve expression' topicStudent Support Forum > General > "Solve expression"

Next Comment >Help | Reply To Topic
Author Comment/Response
11/28/05 07:22am

Hello all,
My name's Grace.
I have a following problem. How can I get values that are results of this expression: NSolve[eqns, vars] into an array?
That means:
In[1]:=NSolve[x^3-3 x^2+2==0,x]
Out[1]={{x -> -0.732051},{x -> 1.},{x -> 2.73205}}
I want to get result into an array like: x[[1]]=-0.732051, x[[2]]=1., x[[3]]=2.73205.
Anyone can help me?
Thanks anyway.

URL: ,

Subject (listing for 'Solve expression')
Author Date Posted
Solve expression Grace 11/28/05 07:22am
Re: Solve expression yehuda ben-s... 11/28/05 3:37pm
Next Comment >Help | Reply To Topic