(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 4.0,
MathReader 4.0, or any compatible application. The data for the notebook 
starts with the line containing stars above.

To get the notebook into a Mathematica-compatible application, do one of 
the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info@wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from 
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      7041,        213]*)
(*NotebookOutlinePosition[     10082,        311]*)
(*  CellTagsIndexPosition[      9835,        297]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[TextData[{
  "Algebra",
  StyleBox["`", "MB"],
  "InequalitySolve",
  StyleBox["`", "MB"]
}], "Subsection",
  CellTags->{"S5.4.1", "1.1"}],

Cell[TextData[{
  "The package provides a function for solving systems of inequalities. ",
  StyleBox["InequalitySolve[", "MR"],
  StyleBox["expr", "TI"],
  StyleBox[",", "MR"],
  " ",
  StyleBox["x", "TI"],
  StyleBox["]", "MR"],
  " finds conditions that must be satisfied by real values of ",
  StyleBox["x", "TI"],
  " in order for the expression ",
  StyleBox["expr", "TI"],
  " to be true. The expression should contain logical connectives and \
polynomial equations and inequalities in the specified variable.  "
}], "Text",
  CellTags->{"S5.4.1", "1.2"}],

Cell[BoxData[
    FormBox[
      StyleBox[
        FrameBox[
          StyleBox[GridBox[{
                {"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"InequalitySolve[\\\\\\\"\\\
\", \\\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"expr\\\\\\\"\\\", \\\"TI\\\"]\
\\)\\!\\(\\*StyleBox[\\\"\\\\\\\",\\\\\\\"\\\", \\\"MR\\\"]\\) \
\\!\\(\\*StyleBox[\\\"\\\\\\\"x\\\\\\\"\\\", \\\"TI\\\"]\\)\\!\\(\\*StyleBox[\
\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>", "\<\"find all real values of \
\\!\\(\\*StyleBox[\\\"\\\\\\\"x\\\\\\\"\\\", \\\"TI\\\"]\\) that satisfy the \
expression containing logical connectives and univariate polynomial equations \
and inequalities\"\>"},
                {
                  
                  RowBox[{"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"InequalitySolve[\
\\\\\\\"\\\", \\\"MR\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\"expr\\\\\\\"\\\", \
\\\"TI\\\"]\\)\\!\\(\\*StyleBox[\\\"\\\\\\\",\\\\\\\"\\\", \\\"MR\\\"]\\) \
\"\>", 
                    StyleBox["{",
                      "InlineFormula"], 
                    StyleBox[
                      
                      SubscriptBox["\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"x\\\\\\\
\"\\\", \\\"TI\\\"]\\)\"\>", "1"],
                      
                      "InlineFormula"], \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\",\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>", 
                    StyleBox[
                      
                      SubscriptBox["\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"x\\\\\\\
\"\\\", \\\"TI\\\"]\\)\"\>", "2"],
                      
                      "InlineFormula"], \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\",\\\\\\\"\\\", \\\"MR\\\"]\\) \[Ellipsis] \
\"\>", 
                    StyleBox["}",
                      
                      "InlineFormula"], \
"\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"]\\\\\\\"\\\", \\\"MR\\\"]\\) \"\>"}], 
                  RowBox[{"\<\"find all real values of \"\>", 
                    StyleBox[
                      
                      SubscriptBox["\<\"\\!\\(\\*StyleBox[\\\"\\\\\\\"x\\\\\\\
\"\\\", \\\"TI\\\"]\\)\"\>", "i"],
                      
                      "InlineFormula"], "\<\" that satisfy the inequalities\"\
\>"}]}
                },
              ColumnAlignments->{Right, Left}],
            GridBoxOptions->{RowLines->False}]],
        "2ColumnBox"], TraditionalForm]], "Text",
  CellTags->{"S5.4.1", "1.3"}],

Cell["Finding solutions to inequalities. ", "Caption",
  CellTags->"S5.4.1"],

Cell["This loads the package. ", "MathCaption",
  CellTags->{"S5.4.1", "1.4"}],

Cell["<<Algebra`InequalitySolve`", "Input",
  CellLabel->"In[1]:= ",
  CellTags->"S5.4.1"],

Cell["Here is a set of solutions to a polynomial inequality. ", "MathCaption",
  CellTags->{"S5.4.1", "1.5"}],

Cell[CellGroupData[{

Cell["InequalitySolve[x (x^2 - 2) (x^2 - 3) > 0, x]", "Input",
  CellLabel->"In[2]:= ",
  CellTags->"S5.4.1"],

Cell[BoxData[
    \(\(-\@3\) < x < \(-\@2\) || 0 < x < \@2 || x > \@3\)], "Output",
  CellLabel->"Out[2]= ",
  CellTags->"S5.4.1"]
}, Open  ]],

Cell["\<\
The inequalities may contain absolute values and rational \
functions. \
\>", "MathCaption",
  CellTags->{"S5.4.1", "1.6"}],

Cell[CellGroupData[{

Cell["InequalitySolve[x/Abs[x - 1] >= 0 && 1/x < x + 1, x]", "Input",
  CellLabel->"In[3]:= ",
  CellTags->"S5.4.1"],

Cell[BoxData[
    \(1\/2\ \((\(-1\) + \@5)\) < x < 1 || x > 1\)], "Output",
  CellLabel->"Out[3]= ",
  CellTags->"S5.4.1"]
}, Open  ]],

Cell["Multivariate inqualities may also be solved. ", "MathCaption",
  CellTags->{"S5.4.1", "1.7"}],

Cell[CellGroupData[{

Cell["InequalitySolve[x^2 + y^2 < 1 && x < y, {x, y}]", "Input",
  CellLabel->"In[4]:= ",
  CellTags->"S5.4.1"],

Cell[BoxData[
    \(\(-1\) < x \[LessEqual] \(-\(1\/\@2\)\) && \(-\@\(1 - x\^2\)\) < 
          y < \@\(1 - x\^2\) || \(-\(1\/\@2\)\) < x < 1\/\@2 && 
        x < y < \@\(1 - x\^2\)\)], "Output",
  CellLabel->"Out[4]= ",
  CellTags->"S5.4.1"]
}, Open  ]],

Cell["\<\
Here the inequalities contain the exponential function. In general, \
if inequalities contain nonpolynomial functions of the specified variable, \
you may get an incorrect result. \
\>", "MathCaption",
  CellTags->{"S5.4.1", "1.8"}],

Cell[CellGroupData[{

Cell["InequalitySolve[Abs[x - 1] <= 5 && E^x <= 3, x]", "Input",
  CellLabel->"In[5]:= ",
  CellTags->"S5.4.1"],

Cell[BoxData[
    \(InequalitySolve::"npi" \(\(:\)\(\ \)\) 
      "A nonpolynomial equation or inequality encountered. The solution set \
may be incorrect."\)], "Message",
  CellTags->"S5.4.1"],

Cell[BoxData[
    \(\(-4\) \[LessEqual] x \[LessEqual] Log[3]\)], "Output",
  CellLabel->"Out[5]= ",
  CellTags->"S5.4.1"]
}, Open  ]]
},
FrontEndVersion->"4.0 for X",
ScreenRectangle->{{0, 800}, {0, 600}},
WindowSize->{520, 455},
WindowMargins->{{140, Automatic}, {Automatic, 72}},
StyleDefinitions -> "HelpBrowser.nb"
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of 
the file.  The cache data will then be recreated when you save this file 
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{
  "S5.4.1"->{
    Cell[1717, 49, 143, 6, 70, "Subsection",
      CellTags->{"S5.4.1", "1.1"}],
    Cell[1863, 57, 562, 15, 70, "Text",
      CellTags->{"S5.4.1", "1.2"}],
    Cell[2428, 74, 2342, 52, 70, "Text",
      CellTags->{"S5.4.1", "1.3"}],
    Cell[4773, 128, 76, 1, 70, "Caption",
      CellTags->"S5.4.1"],
    Cell[4852, 131, 78, 1, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.4"}],
    Cell[4933, 134, 90, 2, 70, "Input",
      CellTags->"S5.4.1"],
    Cell[5026, 138, 109, 1, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.5"}],
    Cell[5160, 143, 109, 2, 70, "Input",
      CellTags->"S5.4.1"],
    Cell[5272, 147, 130, 3, 70, "Output",
      CellTags->"S5.4.1"],
    Cell[5417, 153, 133, 4, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.6"}],
    Cell[5575, 161, 116, 2, 70, "Input",
      CellTags->"S5.4.1"],
    Cell[5694, 165, 122, 3, 70, "Output",
      CellTags->"S5.4.1"],
    Cell[5831, 171, 99, 1, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.7"}],
    Cell[5955, 176, 111, 2, 70, "Input",
      CellTags->"S5.4.1"],
    Cell[6069, 180, 242, 5, 70, "Output",
      CellTags->"S5.4.1"],
    Cell[6326, 188, 242, 5, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.8"}],
    Cell[6593, 197, 111, 2, 70, "Input",
      CellTags->"S5.4.1"],
    Cell[6707, 201, 193, 4, 70, "Message",
      CellTags->"S5.4.1"],
    Cell[6903, 207, 122, 3, 70, "Output",
      CellTags->"S5.4.1"]},
  "1.1"->{
    Cell[1717, 49, 143, 6, 70, "Subsection",
      CellTags->{"S5.4.1", "1.1"}]},
  "1.2"->{
    Cell[1863, 57, 562, 15, 70, "Text",
      CellTags->{"S5.4.1", "1.2"}]},
  "1.3"->{
    Cell[2428, 74, 2342, 52, 70, "Text",
      CellTags->{"S5.4.1", "1.3"}]},
  "1.4"->{
    Cell[4852, 131, 78, 1, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.4"}]},
  "1.5"->{
    Cell[5026, 138, 109, 1, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.5"}]},
  "1.6"->{
    Cell[5417, 153, 133, 4, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.6"}]},
  "1.7"->{
    Cell[5831, 171, 99, 1, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.7"}]},
  "1.8"->{
    Cell[6326, 188, 242, 5, 70, "MathCaption",
      CellTags->{"S5.4.1", "1.8"}]}
  }
*)

(*CellTagsIndex
CellTagsIndex->{
  {"S5.4.1", 7665, 230},
  {"1.1", 9078, 269},
  {"1.2", 9171, 272},
  {"1.3", 9259, 275},
  {"1.4", 9348, 278},
  {"1.5", 9442, 281},
  {"1.6", 9537, 284},
  {"1.7", 9632, 287},
  {"1.8", 9726, 290}
  }
*)

(*NotebookFileOutline
Notebook[{
Cell[1717, 49, 143, 6, 70, "Subsection",
  CellTags->{"S5.4.1", "1.1"}],
Cell[1863, 57, 562, 15, 70, "Text",
  CellTags->{"S5.4.1", "1.2"}],
Cell[2428, 74, 2342, 52, 70, "Text",
  CellTags->{"S5.4.1", "1.3"}],
Cell[4773, 128, 76, 1, 70, "Caption",
  CellTags->"S5.4.1"],
Cell[4852, 131, 78, 1, 70, "MathCaption",
  CellTags->{"S5.4.1", "1.4"}],
Cell[4933, 134, 90, 2, 70, "Input",
  CellTags->"S5.4.1"],
Cell[5026, 138, 109, 1, 70, "MathCaption",
  CellTags->{"S5.4.1", "1.5"}],

Cell[CellGroupData[{
Cell[5160, 143, 109, 2, 70, "Input",
  CellTags->"S5.4.1"],
Cell[5272, 147, 130, 3, 70, "Output",
  CellTags->"S5.4.1"]
}, Open  ]],
Cell[5417, 153, 133, 4, 70, "MathCaption",
  CellTags->{"S5.4.1", "1.6"}],

Cell[CellGroupData[{
Cell[5575, 161, 116, 2, 70, "Input",
  CellTags->"S5.4.1"],
Cell[5694, 165, 122, 3, 70, "Output",
  CellTags->"S5.4.1"]
}, Open  ]],
Cell[5831, 171, 99, 1, 70, "MathCaption",
  CellTags->{"S5.4.1", "1.7"}],

Cell[CellGroupData[{
Cell[5955, 176, 111, 2, 70, "Input",
  CellTags->"S5.4.1"],
Cell[6069, 180, 242, 5, 70, "Output",
  CellTags->"S5.4.1"]
}, Open  ]],
Cell[6326, 188, 242, 5, 70, "MathCaption",
  CellTags->{"S5.4.1", "1.8"}],

Cell[CellGroupData[{
Cell[6593, 197, 111, 2, 70, "Input",
  CellTags->"S5.4.1"],
Cell[6707, 201, 193, 4, 70, "Message",
  CellTags->"S5.4.1"],
Cell[6903, 207, 122, 3, 70, "Output",
  CellTags->"S5.4.1"]
}, Open  ]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)

