| 1 | initial version |
sage: eq = x^2+2*x-3==0
sage: solve(eq,x)
[x == -3, x == 1]
sage: [sol for sol in solve(eq,x) if sol.rhs()>0]
[x == 1]
But keep in mind that not every quadratic equation has one positive and one negative solution! (Or even two real solutions...)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.