I am having a hard time with a huge script. I use Solve function to solve my algebraic equation with parameters of the 4 th order. The result is really messy. Is that possible to assign the roots to variables automatically? Now I use Standartform function, copy and paste each root separately in a new cell, in order to write the result in a new variables.
If it is not clear what I want, suppose we have an equation we want to solve:
In[841]:= StandardForm[Solve[a*x^2 + b*x + c == 0, x]]
Out[841]//StandardForm= {{x -> (-b - Sqrt[b^2 - 4 a c])/(
2 a)}, {x -> (-b + Sqrt[b^2 - 4 a c])/(2 a)}}
In order to work with 2 roots, I have to write two new lines, and copy\paste the result from Out[841]. I want both roots to be written in 2 new variables automatically, so I can work with these variables immidiately.
After doing a quick search through a documentation of Solve, I didn't find the answer.
Thanks,
Solveto a variablesols, say, and then dox /. First@sols. – march Sep 17 '15 at 22:55