Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Solve equation with domain restriction' topicStudent Support Forum > General > Archives > "Solve equation with domain restriction"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
jf
04/03/13 7:29pm

The domain argument can be one of Reals, Integers, and Complexes.

To put constraints on the solution, AND the equation with the constraint(s).

In[2]:= Solve[2*Sin[x] + 1 == 0 && 0 < x < 2*Pi, x]

Out[2]= {{x -> (7*Pi)/6}, {x -> (11*Pi)/6}}

In[3]:= N[%]

Out[3]= {{x -> 3.66519}, {x -> 5.75959}}


The reference page for Solve has an example of this, under Basic Examples, Examples, scroll down to
"Solve an equation over the positive integers"
http://reference.wolfram.com/mathematica/ref/Solve.html#128483034

Solve deals primarily with linear and polynomial equations. For equations with trig functions, you may need to use FindRoot.



URL: http://reference.wolfram.com/mathematica/ref/Solve.html#128483034,

Subject (listing for 'Solve equation with domain restriction')
Author Date Posted
Solve equation with domain restriction Stephen Durr 04/03/13 4:05pm
Re: Solve equation with domain restriction jf 04/03/13 7:29pm
Re: Re: Solve equation with domain restriction Stephen Durr 04/04/13 09:07am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic