Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Assumptions' topicStudent Support Forum > General > "Assumptions"

Next Comment >Help | Reply To Topic
Author Comment/Response
09/10/09 04:58am

I'm trying to solve some equations in mathematica and need to make some assumptions about the variables e.g. x is positive. I'm not sure how to do this. As a simple example I tried

Assuming[x > 0, Simplify[Solve[x^2 == 9, x]]]

expecting to just get the output x=3. However, mathematica gave me the output x=3 and x=-3. How do I get it to solve this equation with x restricted to positive values?

URL: ,

Subject (listing for 'Assumptions')
Author Date Posted
Assumptions Emily 09/10/09 04:58am
Re: Assumptions Bill 09/10/09 5:19pm
Re: Assumptions Bill 09/10/09 6:01pm
Re: Assumptions Kaveh 09/10/09 8:14pm
Re: Assumptions Tom 09/10/09 8:32pm
Re: Assumptions tomD 09/13/09 00:23am
Re: Assumptions Lothar 09/13/09 04:32am
Re: Assumptions Emily 09/15/09 03:02am
Re: Re: Assumptions Peter Pein 09/19/09 7:42pm
Next Comment >Help | Reply To Topic