| 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.
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.