I am new to maxima.
Wanted to know how to extract the solution for solve? Example:
(%i1) soln: solve([x^2 - 9 =0], [x]);
(soln) [x=-3,x=3]
How to extract the values -3
and 3
and assign them to some variables.
I know that if the solution had been
(soln) [-3,3]
then I could have used soln[1]
and soln[2]
to get the values -3
and 3
respectively.
I hope I am able to express my doubt. Any help would be appreciated.