Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get positive solution only of a quadratic equation

I have a quadratic equation when I give it to the solver, I get two solutions, one positive one negative. By doing this: solve(eq, x)[0]

we can select which one. However, I want to insure that is always positive. I don't want manual stuff!