Ask Your Question

Need positive sqrts only

asked 2012-06-11 03:11:43 -0500


I have solved some equations using solve() which does some manipution then takes a few positive and negative sqrts and then some more manipulation. There are several sets of solutions, but it's not obvious which ones correspond to which sign of sqrts. Is there an easy way I can make solve() only take positive square roots?

Thanks! And let me know if more info is needed.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-06-11 09:24:51 -0500

Shashank gravatar image

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


gives x=1,x=-1



returns x=1

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-06-11 03:11:43 -0500

Seen: 106 times

Last updated: Jun 11 '12