Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I would use:

sol=solve(x^2-4==0,x)
[eq.rhs() for eq in sol]

The .rhs() method extracts the right-hand side of an equation.