Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

solve returns a list of equations (or a list of lists of equations)

Assign to a name (for example sol)

sol = solve(x^2 == 4 , x)
sol 

[x == -2, x == 2]

Access to the equations in the list

First, second, last:

sol[0] ; sol[1] ; sol[-1]

x == -2
x == 2
x == 2

Access to the right hand side of the second equation:

sol[1].rhs()