Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can make sure solve returns only positive square roots by making sure that the argument of square root is positive. For eg.

solve(x*x==1,x)

gives x=1,x=-1

however,

assume(x>0)
solve(x*x==1,x)

returns x=1

I might be able to give a better answer if you could give me a simplified example of the problem.