Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Finding solutions as numerical values rather than equations

The output of solve() returns equations. What's the easiest way to "unwrap" these to get numerical values? For instance, solve(x^2-4==0,x) returns [x==-2, x==2]. I'd like to define the associated list [-2,2].