3.4.7 Solving Logical Combinations of EquationsWhen you give a list of equations to Solve, it assumes that you want all the equations to be satisfied simultaneously. It is also possible to give Solve more complicated logical combinations of equations. | Here is an alternative form, using the logical connective && explicitly. | |
In[2]:=
Solve[ x + y 1 && x - y 2, {x, y}]
|
Out[2]=
|
|
| Solve gives three solutions to this equation. | |
In[4]:=
Solve[x^3 x, x]
|
Out[4]=
|
|
When you use Solve, the final results you get are in the form of transformation rules. If you use Reduce or Eliminate, on the other hand, then your results are logical statements, which you can manipulate further. This gives a logical statement representing the solutions of the equation x^2 x. | |
In[7]:=
Reduce[x^2 x, x]
|
Out[7]=
|
|
The logical statements produced by Reduce can be thought of as representations of the solution set for your equations. The logical connectives &&, || and so on then correspond to operations on these sets.
|| | union of solution sets | && | intersection of solution sets | | !eqns | complement of a solution set | Implies[ , ] | the part of that contains |
Operations on solution sets. You may often find it convenient to use special notations for logical connectives, as discussed in Section 3.10.4. | The input uses special notations for Implies and Or. | |
Out[9]=
|
|
|