(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 3.0, MathReader 3.0, or any compatible application. The data for the notebook starts with the line of 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[ 10125, 361]*) (*NotebookOutlinePosition[ 34496, 1220]*) (* CellTagsIndexPosition[ 34452, 1216]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell[TextData[{ "Solving Equations in ", StyleBox["Mathematica", FontSlant->"Italic"] }], "Title"], Cell["By Robin Sue Sanders (Spring 1999)", "Subsubtitle", TextAlignment->Center], Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic"], " knows all kinds of tricks for solving equations. None of them work all \ the time\[LongDash]they each have their special uses and you have to choose \ what suits the problem best." }], "Text"], Cell[CellGroupData[{ Cell[TextData[{ "Equal signs in ", StyleBox["Mathematica", FontSlant->"Italic"], "." }], "Section"], Cell[TextData[{ " ", StyleBox["Mathematica", FontSlant->"Italic"], " (and other programming languages) must distinguish between a simple ", StyleBox["assignment", FontSlant->"Italic"], " operator (one =) and an equation (two ==). Assignment occurs when you ", StyleBox["tell", FontSlant->"Italic"], " ", StyleBox["Mathematica", FontSlant->"Italic"], " that a particular variable is equal to a particular value. ", StyleBox["Mathematica", FontSlant->"Italic"], " acutally has two assignment operators\n\t= (for an immediate assignment) \ and := (for a delayed assignment)" }], "Text"], Cell["\<\ \tUse = when you are giving a parameter (i.e. letter) a numerical \ value. \tUse := when you are declaring a function. \tUse == when you are writing an equation.\ \>", "Text"] }, Closed]], Cell[CellGroupData[{ Cell["Basic Solve command and equal signs", "Section"], Cell["\<\ For relatively straightfoward equations, Solve[eqn, variable] \ works:\ \>", "Text"], Cell["Solve[a x^2 + b x + c==0, x]", "Input"], Cell[TextData[{ "Note the use of the double equal sign in the equation. The ,x part of the \ commad tells ", StyleBox["Mathematica", FontSlant->"Italic"], " that you want to solve the equation for x in terms of a, b, and c. (Try \ replacing the x with a, b, or c and reactivating the cell. What happens?) \ The x -> in the output is read as \"x goes to\" or \"x is replaced by\". If \ you need the values of the solutions to the equation, you need to label (i.e. \ name) the output of the Solve command:" }], "Text"], Cell["ans=Solve[a x^2 + b x + c==0, x]", "Input"], Cell["\<\ The strange syntax ans[[1,1,2]] and ans[[2,1,2]] pick out the first \ and second answers:\ \>", "Text"], Cell["ans[[1,1,2]]", "Input"], Cell["ans[[2,1,2]]", "Input"] }, Closed]], Cell[CellGroupData[{ Cell["When Solve's answers are too long or too hard to parse", "Section"], Cell[TextData[{ "If you give ", StyleBox["Mathematica", FontSlant->"Italic"], " a mess of an equation, the Sovle command may give you a symbolically \ correct, but useless answer:" }], "Text"], Cell["Solve[3 x^4 + 2 x^3 + x == 4, x]", "Input"], Cell["\<\ Try NSolve instead: (This basically hangs an N[ ] around the Solve \ command.)\ \>", "Text"], Cell["NSolve[3 x^4 + 2 x^3 + x == 4, x]", "Input"] }, Closed]], Cell[CellGroupData[{ Cell[TextData[ "When Solve doesn't work\[LongDash]Using FindRoot instead"], "Section"], Cell[TextData[{ "Solve does symbolic algebra. Not all equations can be solved \ algebraically. If you give ", StyleBox["Mathematica'", FontSlant->"Italic"], "s Solve command an equation that can't be solved algebraically, ", StyleBox["Mathematica", FontSlant->"Italic"], " will fuss:" }], "Text"], Cell["Solve[Cos[x^2] == 3/4 + x, x]", "Input"], Cell[TextData[{ "The message\n\t", StyleBox[ "The equations appear to involve transcendental functions of the variables \ in an essentially non-algebraic way.", FontColor->RGBColor[0, 0, 1]], "\nmeans that symbolic algebra tools are not going to work. Usually NSolve \ also fusses. (Try it: Replace the Solve with NSolve\nand reactivate the \ cell.)" }], "Text"], Cell[TextData[{ "When this happens, we need to use a numerical technique. (", StyleBox["Mathematica", FontSlant->"Italic"], "'s actual technique is based on Newton's Method, which you may recall from \ Calculus I or the graphing calculuator course.) Numerical methods require \ \"guesses\". The better the guess,\nthe faster the method will work. To get \ a good guess, re-write the equation with all the terms on one side, plot, and \ look for roots:" }], "Text"], Cell["Plot[Cos[x^2] - 3/4 - x, {x, -4, 4}]", "Input"], Cell["\<\ This plot indicates we probably have three solutions: Two near -2 \ and one just above 0. Now we can feed this information to the FindRoot \ command. FindRoot has the syntax shown below:\ \>", "Text"], Cell["?FindRoot", "Input"], Cell["We try ", "Text"], Cell["FindRoot[Cos[x^2] == 3/4 + x, {x, 0}]", "Input"], Cell["and", "Text"], Cell["FindRoot[Cos[x^2] == 3/4 + x, {x, -2}]", "Input"], Cell["FindRoot[Cos[x^2] == 3/4 + x, {x, -1}]", "Input"], Cell["\<\ If you get the same root twice, just try new guesses. (You may \ want to zoom in on the plot to refine your guesses.)\ \>", "Text"], Cell["\<\ A warning: If you try a guess that is too far from a root, \ FindRoot may fail:\ \>", "Text"], Cell["FindRoot[Cos[x^2] == 3/4 + x, {x, 1000}]", "Input"], Cell[TextData[{ "The message here:\n\t", StyleBox[ "Newton's method failed to converge to the prescribed accuracy after 15 \ iterations.", FontColor->RGBColor[0, 0, 1]], "\nmeans that the answer CANNOT be trusted\[LongDash]the reported answer is \ simply the last iteration that ", StyleBox["Mathematica", FontSlant->"Italic"], " found. Do NOT use it in further calculuations. Oscilations can also \ cause this problem." }], "Text"] }, Closed]], Cell[CellGroupData[{ Cell["Two or more equations at the same time", "Section"], Cell[TextData[{ "Use { } to surround the list of equations in a Solve command and { } to \ surround the list of variables you want to solve for. ", StyleBox["Mathematica", FontSlant->"Italic"], " reports the answers as ordered pairs:" }], "Text"], Cell["\<\ Solve[{3 x + 4 y == 6,\t\t(* Equation 1 *) \t 17 x - 29 y == 120}, (* Equation 2 *) \t {x, y}]\t\t\t(* list of variables *) \ \>", "Input"], Cell[TextData[{ " ", StyleBox["Mathematica", FontSlant->"Italic"], " uses { } to tell you that there is no solution. The following\nasks ", StyleBox["Mathematica", FontSlant->"Italic"], " to find the intersection points of a pair of parallel lines." }], "Text"], Cell["\<\ Solve[{3 x + 4 y == 6,\t\t \t 3 x +4 y == 120}, \t {x, y}]\t\t\t\ \>", "Input"], Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic"], " can handle multiple solutions to systems of equations. The next cell \ finds the both intersection points of the parabola y = ", Cell[BoxData[ \(TraditionalForm\`x\^2\)]], " and the ellipse ", Cell[BoxData[ \(TraditionalForm\`x\^2 + 3\ y\^2 = \ 1\)]], ". " }], "Text"], Cell["\<\ Solve[{y == x^2, \t x^2 + 3 y^2 == 1}, \t {x, y}]\ \>", "Input"], Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic"], " reports two complex intersection points as well as the two, familiar real \ ones because ", StyleBox["Mathematica", FontSlant->"Italic"], "'s default number system is the field of Complex numbers. " }], "Text"], Cell["NSolve can be used in the same way:", "Text"], Cell["\<\ NSolve[{y == x^2, \t x^2 + 3 y^2 == 1}, \t {x, y}]\ \>", "Input"], Cell[TextData[{ "The syntax for FindRoot syntax is a bit different when you've got more \ than one equation and more than one variable involved. You put { } around \ the list of equations, but you give ", StyleBox["Mathematica", FontSlant->"Italic"], " a starting value for each variable:" }], "Text"], Cell["\<\ FindRoot[{y == x^2,\t\t\t\t(* Equation 1 *) \t\t x^2 + 3 y^2 == 1},\t(* Equation 2 *) \t\t {x,1/2},\t\t(* starting value for x *) \t\t {y,1/2}]\t\t(* starting value for y *)\ \>", "Input"], Cell["Bad \"guesses\" can still happen:", "Text"], Cell["\<\ FindRoot[{y == x^2, \t\t x^2 + 3 y^2 == 1}, \t\t {x,0},{y,0}]\ \>", "Input"], Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic"], "'s hint, \"", StyleBox["Try perturbing the intital point(s)", FontColor->RGBColor[0, 0, 1]], "'' means to try new (nearby) values and see if they work better." }], "Text"], Cell["\<\ FindRoot[{y == x^2, \t\t x^2 + 3 y^2 == 1}, \t\t {x,0.1},{y,0}]\ \>", "Input"] }, Closed]] }, Open ]] }, FrontEndVersion->"Macintosh 3.0", ScreenRectangle->{{0, 800}, {0, 580}}, WindowSize->{518, 430}, WindowMargins->{{4, Automatic}, {Automatic, 1}}, PrintingCopies->1, PrintingPageRange->{1, Automatic}, PageHeaders->{{Cell[ TextData[ { CounterBox[ "Page"]}], "PageNumber"], Inherited, Cell[ TextData[ "Derivatives in Mathematica"], "Header"]}, {Cell[ TextData[ { ValueBox[ "FileName"]}], "Header"], Inherited, Cell[ TextData[ { CounterBox[ "Page"]}], "PageNumber"]}}, PrintingOptions->{"FirstPageHeader"->False, "FacingPages"->True}, PrivateFontOptions->{"FontType"->"Outline"}, StyleDefinitions -> Notebook[{ Cell["Style Definitions", "Subtitle"], Cell["\<\ Modify the definitions below to change the default appearance of \ all cells in a given style. Make modifications to any definition using \ commands in the Format menu.\ \>", "Text"], Cell["Style Environment Names", "Section"], Cell[StyleData[All, "Working"], PageWidth->WindowWidth, ScriptMinSize->9], Cell[StyleData[All, "Presentation"], PageWidth->WindowWidth, ScriptMinSize->12, FontSize->16], Cell[StyleData[All, "Condensed"], PageWidth->WindowWidth, CellBracketOptions->{"Margins"->{1, 1}, "Widths"->{0, 5}}, ScriptMinSize->8, FontSize->11], Cell[StyleData[All, "Printout"], PageWidth->PaperWidth, ScriptMinSize->5, FontSize->10, PrivateFontOptions->{"FontType"->"Outline"}], Cell["Notebook Options", "Section"], Cell["\<\ The options defined for the style below will be used at the \ Notebook level.\ \>", "Text"], Cell[StyleData["Notebook"], PageHeaders->{{Cell[ TextData[ { CounterBox[ "Page"]}], "PageNumber"], None, Cell[ TextData[ { ValueBox[ "FileName"]}], "Header"]}, {Cell[ TextData[ { ValueBox[ "FileName"]}], "Header"], None, Cell[ TextData[ { CounterBox[ "Page"]}], "PageNumber"]}}, CellFrameLabelMargins->6, StyleMenuListing->None], Cell["Styles for Headings", "Section"], Cell[CellGroupData[{ Cell[StyleData["Title"], CellFrame->True, CellMargins->{{12, Inherited}, {20, 40}}, CellGroupingRules->{"TitleGrouping", 0}, PageBreakBelow->False, TextAlignment->Center, CounterIncrements->"Title", CounterAssignments->{{"Section", 0}, {"Equation", 0}, {"Figure", 0}, { "Subtitle", 0}, {"Subsubtitle", 0}}, FontFamily->"Times", FontSize->36, FontWeight->"Bold", FontColor->RGBColor[0, 0, 1], Background->RGBColor[1, 1, 0]], Cell[StyleData["Title", "Presentation"], CellMargins->{{24, 10}, {20, 40}}, LineSpacing->{1, 0}, FontSize->44], Cell[StyleData["Title", "Condensed"], CellMargins->{{8, 10}, {4, 8}}, FontSize->20], Cell[StyleData["Title", "Printout"], CellMargins->{{2, 10}, {12, 30}}, FontSize->18] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["Subtitle"], CellMargins->{{12, Inherited}, {20, 15}}, CellGroupingRules->{"TitleGrouping", 10}, PageBreakBelow->False, CounterIncrements->"Subtitle", CounterAssignments->{{"Section", 0}, {"Equation", 0}, {"Figure", 0}, { "Subsubtitle", 0}}, FontFamily->"Times", FontSize->24], Cell[StyleData["Subtitle", "Presentation"], CellMargins->{{24, 10}, {20, 20}}, LineSpacing->{1, 0}, FontSize->36], Cell[StyleData["Subtitle", "Condensed"], CellMargins->{{8, 10}, {4, 4}}, FontSize->14], Cell[StyleData["Subtitle", "Printout"], CellMargins->{{2, 10}, {12, 8}}, FontSize->16] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["Subsubtitle"], CellMargins->{{12, Inherited}, {20, 15}}, CellGroupingRules->{"TitleGrouping", 20}, PageBreakBelow->False, CounterIncrements->"Subsubtitle", CounterAssignments->{{"Section", 0}, {"Equation", 0}, {"Figure", 0}}, FontFamily->"Times", FontSize->14, FontSlant->"Italic"], Cell[StyleData["Subsubtitle", "Presentation"], CellMargins->{{24, 10}, {20, 20}}, LineSpacing->{1, 0}, FontSize->24], Cell[StyleData["Subsubtitle", "Condensed"], CellMargins->{{8, 10}, {8, 8}}, FontSize->12], Cell[StyleData["Subsubtitle", "Printout"], CellMargins->{{2, 10}, {12, 8}}, FontSize->14] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["Section"], CellDingbat->"\[FilledSquare]", CellMargins->{{25, Inherited}, {8, 24}}, CellGroupingRules->{"SectionGrouping", 30}, PageBreakBelow->False, CounterIncrements->"Section", CounterAssignments->{{"Subsection", 0}, {"Subsubsection", 0}}, FontFamily->"Times", FontSize->18, FontWeight->"Bold"], Cell[StyleData["Section", "Presentation"], CellMargins->{{40, 10}, {11, 32}}, LineSpacing->{1, 0}, FontSize->24], Cell[StyleData["Section", "Condensed"], CellMargins->{{18, Inherited}, {6, 12}}, FontSize->12], Cell[StyleData["Section", "Printout"], CellMargins->{{13, 0}, {7, 22}}, FontSize->14] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["Subsection"], CellDingbat->"\[FilledSmallSquare]", CellMargins->{{22, Inherited}, {8, 20}}, CellGroupingRules->{"SectionGrouping", 40}, PageBreakBelow->False, CounterIncrements->"Subsection", CounterAssignments->{{"Subsubsection", 0}}, FontFamily->"Times", FontSize->16, FontWeight->"Bold"], Cell[StyleData["Subsection", "Presentation"], CellMargins->{{36, 10}, {11, 32}}, LineSpacing->{1, 0}, FontSize->22], Cell[StyleData["Subsection", "Condensed"], CellMargins->{{16, Inherited}, {6, 12}}, FontSize->12], Cell[StyleData["Subsection", "Printout"], CellMargins->{{9, 0}, {7, 22}}, FontSize->12] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["Subsubsection"], CellDingbat->"\[FilledSmallSquare]", CellMargins->{{22, Inherited}, {8, 18}}, CellGroupingRules->{"SectionGrouping", 50}, PageBreakBelow->False, CounterIncrements->"Subsubsection", FontFamily->"Times", FontSize->14, FontWeight->"Bold"], Cell[StyleData["Subsubsection", "Presentation"], CellMargins->{{34, 10}, {11, 26}}, LineSpacing->{1, 0}, FontSize->18], Cell[StyleData["Subsubsection", "Condensed"], CellMargins->{{17, Inherited}, {6, 12}}, FontSize->10], Cell[StyleData["Subsubsection", "Printout"], CellMargins->{{9, 0}, {7, 14}}, FontSize->11] }, Closed]], Cell["Styles for Body Text", "Section"], Cell[CellGroupData[{ Cell[StyleData["Text"], CellMargins->{{12, 10}, {7, 7}}, LineSpacing->{1, 3}, CounterIncrements->"Text", FontFamily->"Times", FontSize->14], Cell[StyleData["Text", "Presentation"], CellMargins->{{24, 10}, {10, 10}}, LineSpacing->{1, 5}], Cell[StyleData["Text", "Condensed"], CellMargins->{{8, 10}, {6, 6}}, LineSpacing->{1, 1}], Cell[StyleData["Text", "Printout"], CellMargins->{{2, 2}, {6, 6}}, FontSize->10] }, Open ]], Cell[CellGroupData[{ Cell[StyleData["SmallText"], CellMargins->{{12, 10}, {6, 6}}, LineSpacing->{1, 3}, CounterIncrements->"SmallText", FontFamily->"Times", FontSize->10], Cell[StyleData["SmallText", "Presentation"], CellMargins->{{24, 10}, {8, 8}}, LineSpacing->{1, 5}, FontSize->12], Cell[StyleData["SmallText", "Condensed"], CellMargins->{{8, 10}, {5, 5}}, LineSpacing->{1, 2}, FontSize->9], Cell[StyleData["SmallText", "Printout"], CellMargins->{{2, 2}, {5, 5}}, FontSize->7] }, Open ]], Cell["Styles for Input/Output", "Section"], Cell["\<\ The cells in this section define styles used for input and output \ to the kernel. Be careful when modifying, renaming, or removing these \ styles, because the front end associates special meanings with these style \ names. Some attributes for these styles are actually set in FormatType Styles \ (in the last section of this stylesheet). \ \>", "Text"], Cell[CellGroupData[{ Cell[StyleData["Input"], CellMargins->{{45, 10}, {5, 7}}, Evaluatable->True, CellGroupingRules->"InputGrouping", PageBreakWithin->False, GroupPageBreakWithin->False, CellLabelMargins->{{11, Inherited}, {Inherited, Inherited}}, DefaultFormatType->DefaultInputFormatType, AutoItalicWords->{}, FormatType->InputForm, ShowStringCharacters->True, NumberMarks->True, CounterIncrements->"Input", FontFamily->"Courier", FontSize->14, FontWeight->"Bold"], Cell[StyleData["Input", "Presentation"], CellMargins->{{72, Inherited}, {8, 10}}, LineSpacing->{1, 0}], Cell[StyleData["Input", "Condensed"], CellMargins->{{40, 10}, {2, 3}}], Cell[StyleData["Input", "Printout"], CellMargins->{{39, 0}, {4, 6}}, FontSize->9] }, Open ]], Cell[StyleData["InputOnly"], Evaluatable->True, CellGroupingRules->"InputGrouping", DefaultFormatType->DefaultInputFormatType, AutoItalicWords->{}, FormatType->InputForm, ShowStringCharacters->True, NumberMarks->True, CounterIncrements->"Input", StyleMenuListing->None, FontWeight->"Bold"], Cell[CellGroupData[{ Cell[StyleData["Output"], CellMargins->{{47, 10}, {7, 5}}, CellEditDuplicate->True, CellGroupingRules->"OutputGrouping", CellHorizontalScrolling->True, PageBreakWithin->False, GroupPageBreakWithin->False, GeneratedCell->True, CellAutoOverwrite->True, CellLabelMargins->{{11, Inherited}, {Inherited, Inherited}}, DefaultFormatType->DefaultOutputFormatType, AutoItalicWords->{}, FormatType->InputForm, CounterIncrements->"Output", FontFamily->"Courier", FontSize->14], Cell[StyleData["Output", "Presentation"], CellMargins->{{72, Inherited}, {10, 8}}, LineSpacing->{1, 0}], Cell[StyleData["Output", "Condensed"], CellMargins->{{41, Inherited}, {3, 2}}], Cell[StyleData["Output", "Printout"], CellMargins->{{39, 0}, {6, 4}}, FontSize->9] }, Open ]], Cell[CellGroupData[{ Cell[StyleData["Message"], CellMargins->{{45, Inherited}, {Inherited, Inherited}}, CellGroupingRules->"OutputGrouping", PageBreakWithin->False, GroupPageBreakWithin->False, GeneratedCell->True, CellAutoOverwrite->True, ShowCellLabel->False, CellLabelMargins->{{11, Inherited}, {Inherited, Inherited}}, DefaultFormatType->DefaultOutputFormatType, AutoItalicWords->{}, FormatType->InputForm, CounterIncrements->"Message", StyleMenuListing->None, FontColor->RGBColor[0, 0, 1]], Cell[StyleData["Message", "Presentation"], CellMargins->{{72, Inherited}, {Inherited, Inherited}}, LineSpacing->{1, 0}], Cell[StyleData["Message", "Condensed"], CellMargins->{{41, Inherited}, {Inherited, Inherited}}], Cell[StyleData["Message", "Printout"], CellMargins->{{39, Inherited}, {Inherited, Inherited}}, FontSize->8, FontColor->GrayLevel[0]] }, Open ]], Cell[CellGroupData[{ Cell[StyleData["Print"], CellMargins->{{45, Inherited}, {Inherited, Inherited}}, CellGroupingRules->"OutputGrouping", PageBreakWithin->False, GroupPageBreakWithin->False, GeneratedCell->True, CellAutoOverwrite->True, ShowCellLabel->False, CellLabelMargins->{{11, Inherited}, {Inherited, Inherited}}, DefaultFormatType->DefaultOutputFormatType, AutoItalicWords->{}, FormatType->InputForm, CounterIncrements->"Print", StyleMenuListing->None], Cell[StyleData["Print", "Presentation"], CellMargins->{{72, Inherited}, {Inherited, Inherited}}, LineSpacing->{1, 0}], Cell[StyleData["Print", "Condensed"], CellMargins->{{41, Inherited}, {Inherited, Inherited}}], Cell[StyleData["Print", "Printout"], CellMargins->{{39, Inherited}, {Inherited, Inherited}}, FontSize->8] }, Open ]], Cell[CellGroupData[{ Cell[StyleData["Graphics"], CellMargins->{{4, Inherited}, {Inherited, Inherited}}, CellGroupingRules->"GraphicsGrouping", CellHorizontalScrolling->True, PageBreakWithin->False, GeneratedCell->True, CellAutoOverwrite->True, ShowCellLabel->False, DefaultFormatType->DefaultOutputFormatType, FormatType->InputForm, CounterIncrements->"Graphics", ImageMargins->{{43, Inherited}, {Inherited, 0}}, StyleMenuListing->None], Cell[StyleData["Graphics", "Presentation"], ImageMargins->{{62, Inherited}, {Inherited, 0}}], Cell[StyleData["Graphics", "Condensed"], ImageMargins->{{38, Inherited}, {Inherited, 0}}, Magnification->0.6], Cell[StyleData["Graphics", "Printout"], ImageMargins->{{30, Inherited}, {Inherited, 0}}, FontSize->9, Magnification->0.8] }, Open ]], Cell[CellGroupData[{ Cell[StyleData["CellLabel"], StyleMenuListing->None, FontFamily->"Helvetica", FontSize->9, FontColor->RGBColor[0, 0, 1]], Cell[StyleData["CellLabel", "Presentation"], FontSize->12], Cell[StyleData["CellLabel", "Condensed"], FontSize->9], Cell[StyleData["CellLabel", "Printout"], FontFamily->"Courier", FontSize->8, FontSlant->"Italic", FontColor->GrayLevel[0]] }, Open ]], Cell["Formulas and Programming", "Section"], Cell[CellGroupData[{ Cell[StyleData["InlineFormula"], CellMargins->{{10, 4}, {0, 8}}, CellHorizontalScrolling->True, ScriptLevel->1, SingleLetterItalics->True], Cell[StyleData["InlineFormula", "Presentation"], CellMargins->{{24, 10}, {10, 10}}, LineSpacing->{1, 5}], Cell[StyleData["InlineFormula", "Condensed"], CellMargins->{{8, 10}, {6, 6}}, LineSpacing->{1, 1}], Cell[StyleData["InlineFormula", "Printout"], CellMargins->{{2, 0}, {6, 6}}, FontSize->10] }, Open ]], Cell[CellGroupData[{ Cell[StyleData["DisplayFormula"], CellMargins->{{42, Inherited}, {Inherited, Inherited}}, CellHorizontalScrolling->True, DefaultFormatType->DefaultInputFormatType, ScriptLevel->0, SingleLetterItalics->True, UnderoverscriptBoxOptions->{LimitsPositioning->True}], Cell[StyleData["DisplayFormula", "Presentation"], LineSpacing->{1, 5}], Cell[StyleData["DisplayFormula", "Condensed"], LineSpacing->{1, 1}], Cell[StyleData["DisplayFormula", "Printout"], FontSize->10] }, Open ]], Cell["Styles for Headers and Footers", "Section"], Cell[StyleData["Header"], CellMargins->{{0, 0}, {4, 1}}, StyleMenuListing->None, FontSize->10, FontSlant->"Italic"], Cell[StyleData["Footer"], CellMargins->{{0, 0}, {0, 4}}, StyleMenuListing->None, FontSize->9, FontSlant->"Italic"], Cell[StyleData["PageNumber"], CellMargins->{{0, 0}, {4, 1}}, StyleMenuListing->None, FontFamily->"Times", FontSize->10], Cell["Palette Styles", "Section"], Cell["\<\ The cells below define styles that define standard \ ButtonFunctions, for use in palette buttons.\ \>", "Text"], Cell[StyleData["Paste"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`NotebookApply[ FrontEnd`InputNotebook[ ], #, After]}]&)}], Cell[StyleData["Evaluate"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`NotebookApply[ FrontEnd`InputNotebook[ ], #, All], SelectionEvaluate[ FrontEnd`InputNotebook[ ], All]}]&)}], Cell[StyleData["EvaluateCell"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`NotebookApply[ FrontEnd`InputNotebook[ ], #, All], FrontEnd`SelectionMove[ FrontEnd`InputNotebook[ ], All, Cell, 1], FrontEnd`SelectionEvaluateCreateCell[ FrontEnd`InputNotebook[ ], All]}]&)}], Cell[StyleData["CopyEvaluate"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`SelectionCreateCell[ FrontEnd`InputNotebook[ ], All], FrontEnd`NotebookApply[ FrontEnd`InputNotebook[ ], #, All], FrontEnd`SelectionEvaluate[ FrontEnd`InputNotebook[ ], All]}]&)}], Cell[StyleData["CopyEvaluateCell"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`SelectionCreateCell[ FrontEnd`InputNotebook[ ], All], FrontEnd`NotebookApply[ FrontEnd`InputNotebook[ ], #, All], FrontEnd`SelectionEvaluateCreateCell[ FrontEnd`InputNotebook[ ], All]}]&)}], Cell["Hyperlink Styles", "Section"], Cell["\<\ The cells below define styles useful for making hypertext \ ButtonBoxes. The \"Hyperlink\" style is for links within the same Notebook, \ or between Notebooks.\ \>", "Text"], Cell[CellGroupData[{ Cell[StyleData["Hyperlink"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, FontColor->RGBColor[0, 0, 1], FontVariations->{"Underline"->True}, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`NotebookLocate[ #2]}]&), Active->True, ButtonNote->ButtonData}], Cell[StyleData["Hyperlink", "Presentation"]], Cell[StyleData["Hyperlink", "Condensed"]], Cell[StyleData["Hyperlink", "Printout"], FontColor->GrayLevel[0], FontVariations->{"Underline"->False}] }, Closed]], Cell["\<\ The following styles are for linking automatically to the on-line \ help system.\ \>", "Text"], Cell[CellGroupData[{ Cell[StyleData["MainBookLink"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, FontColor->RGBColor[0, 0, 1], FontVariations->{"Underline"->True}, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`HelpBrowserLookup[ "MainBook", #]}]&), Active->True, ButtonFrame->"None"}], Cell[StyleData["MainBookLink", "Presentation"]], Cell[StyleData["MainBookLink", "Condensed"]], Cell[StyleData["MainBookLink", "Printout"], FontColor->GrayLevel[0], FontVariations->{"Underline"->False}] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["AddOnsLink"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, FontFamily->"Courier", FontColor->RGBColor[0, 0, 1], FontVariations->{"Underline"->True}, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`HelpBrowserLookup[ "AddOns", #]}]&), Active->True, ButtonFrame->"None"}], Cell[StyleData["AddOnsLink", "Presentation"]], Cell[StyleData["AddOnsLink", "Condensed"]], Cell[StyleData["AddOnLink", "Printout"], FontColor->GrayLevel[0], FontVariations->{"Underline"->False}] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["RefGuideLink"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, FontFamily->"Courier", FontColor->RGBColor[0, 0, 1], FontVariations->{"Underline"->True}, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`HelpBrowserLookup[ "RefGuideLink", #]}]&), Active->True, ButtonFrame->"None"}], Cell[StyleData["RefGuideLink", "Presentation"]], Cell[StyleData["RefGuideLink", "Condensed"]], Cell[StyleData["RefGuideLink", "Printout"], FontColor->GrayLevel[0], FontVariations->{"Underline"->False}] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["GettingStartedLink"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, FontColor->RGBColor[0, 0, 1], FontVariations->{"Underline"->True}, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`HelpBrowserLookup[ "GettingStarted", #]}]&), Active->True, ButtonFrame->"None"}], Cell[StyleData["GettingStartedLink", "Presentation"]], Cell[StyleData["GettingStartedLink", "Condensed"]], Cell[StyleData["GettingStartedLink", "Printout"], FontColor->GrayLevel[0], FontVariations->{"Underline"->False}] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["OtherInformationLink"], StyleMenuListing->None, ButtonStyleMenuListing->Automatic, FontColor->RGBColor[0, 0, 1], FontVariations->{"Underline"->True}, ButtonBoxOptions->{ButtonFunction:>(FrontEndExecute[ { FrontEnd`HelpBrowserLookup[ "OtherInformation", #]}]&), Active->True, ButtonFrame->"None"}], Cell[StyleData["OtherInformationLink", "Presentation"]], Cell[StyleData["OtherInformationLink", "Condensed"]], Cell[StyleData["OtherInformationLink", "Printout"], FontColor->GrayLevel[0], FontVariations->{"Underline"->False}] }, Closed]], Cell["Placeholder Styles", "Section"], Cell["\<\ The cells below define styles useful for making placeholder \ objects in palette templates.\ \>", "Text"], Cell[CellGroupData[{ Cell[StyleData["Placeholder"], Editable->False, Selectable->False, StyleBoxAutoDelete->True, Placeholder->True, StyleMenuListing->None], Cell[StyleData["Placeholder", "Presentation"]], Cell[StyleData["Placeholder", "Condensed"]], Cell[StyleData["Placeholder", "Printout"]] }, Closed]], Cell[CellGroupData[{ Cell[StyleData["SelectionPlaceholder"], Editable->False, Selectable->False, StyleBoxAutoDelete->True, Placeholder->Primary, StyleMenuListing->None, DrawHighlighted->True], Cell[StyleData["SelectionPlaceholder", "Presentation"]], Cell[StyleData["SelectionPlaceholder", "Condensed"]], Cell[StyleData["SelectionPlaceholder", "Printout"]] }, Closed]], Cell["FormatType Styles", "Section"], Cell["\<\ The cells below define styles that are mixed in with the styles \ of most cells. If a cell's FormatType matches the name of one of the styles \ defined below, then that style is applied between the cell's style and its \ own options. This is particularly true of Input and Output.\ \>", "Text"], Cell[StyleData["CellExpression"], PageWidth->Infinity, CellMargins->{{6, Inherited}, {Inherited, Inherited}}, ShowCellLabel->False, ShowSpecialCharacters->False, AllowInlineCells->False, AutoItalicWords->{}, StyleMenuListing->None, FontFamily->"Courier", FontSize->12, Background->GrayLevel[1]], Cell[StyleData["InputForm"], AllowInlineCells->False, StyleMenuListing->None, FontFamily->"Courier"], Cell[StyleData["OutputForm"], PageWidth->Infinity, TextAlignment->Left, LineSpacing->{0.6, 1}, StyleMenuListing->None, FontFamily->"Courier"], Cell[StyleData["StandardForm"], LineSpacing->{1.25, 0}, StyleMenuListing->None, FontFamily->"Courier"], Cell[StyleData["TraditionalForm"], LineSpacing->{1.25, 0}, SingleLetterItalics->True, TraditionalFunctionNotation->True, DelimiterMatching->None, StyleMenuListing->None], Cell["\<\ The style defined below is mixed in to any cell that is in an \ inline cell within another.\ \>", "Text"], Cell[StyleData["InlineCell"], TextAlignment->Left, ScriptLevel->1, StyleMenuListing->None], Cell[StyleData["InlineCellEditing"], StyleMenuListing->None, Background->RGBColor[1, 0.749996, 0.8]] }], MacintoshSystemPageSetup->"\<\ 00<0004/0B`000002mT8o?mooh<" ] (*********************************************************************** 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->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1731, 51, 106, 4, 150, "Title"], Cell[1840, 57, 82, 1, 50, "Subsubtitle"], Cell[1925, 60, 265, 6, 65, "Text"], Cell[CellGroupData[{ Cell[2215, 70, 109, 5, 51, "Section"], Cell[2327, 77, 628, 18, 99, "Text"], Cell[2958, 97, 188, 5, 65, "Text"] }, Closed]], Cell[CellGroupData[{ Cell[3183, 107, 54, 0, 31, "Section"], Cell[3240, 109, 94, 3, 31, "Text"], Cell[3337, 114, 45, 0, 27, "Input"], Cell[3385, 116, 531, 10, 116, "Text"], Cell[3919, 128, 49, 0, 27, "Input"], Cell[3971, 130, 113, 3, 48, "Text"], Cell[4087, 135, 29, 0, 27, "Input"], Cell[4119, 137, 29, 0, 27, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4185, 142, 73, 0, 31, "Section"], Cell[4261, 144, 202, 6, 48, "Text"], Cell[4466, 152, 49, 0, 27, "Input"], Cell[4518, 154, 103, 3, 31, "Text"], Cell[4624, 159, 50, 0, 27, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4711, 164, 86, 1, 31, "Section"], Cell[4800, 167, 316, 9, 65, "Text"], Cell[5119, 178, 46, 0, 27, "Input"], Cell[5168, 180, 377, 9, 116, "Text"], Cell[5548, 191, 478, 9, 116, "Text"], Cell[6029, 202, 53, 0, 27, "Input"], Cell[6085, 204, 213, 4, 65, "Text"], Cell[6301, 210, 26, 0, 27, "Input"], Cell[6330, 212, 23, 0, 31, "Text"], Cell[6356, 214, 54, 0, 27, "Input"], Cell[6413, 216, 19, 0, 31, "Text"], Cell[6435, 218, 55, 0, 27, "Input"], Cell[6493, 220, 55, 0, 27, "Input"], Cell[6551, 222, 142, 3, 48, "Text"], Cell[6696, 227, 104, 3, 31, "Text"], Cell[6803, 232, 57, 0, 27, "Input"], Cell[6863, 234, 454, 12, 116, "Text"] }, Closed]], Cell[CellGroupData[{ Cell[7354, 251, 57, 0, 31, "Section"], Cell[7414, 253, 257, 6, 65, "Text"], Cell[7674, 261, 154, 4, 57, "Input"], Cell[7831, 267, 280, 8, 48, "Text"], Cell[8114, 277, 97, 4, 57, "Input"], Cell[8214, 283, 363, 11, 65, "Text"], Cell[8580, 296, 78, 4, 57, "Input"], Cell[8661, 302, 290, 8, 65, "Text"], Cell[8954, 312, 51, 0, 31, "Text"], Cell[9008, 314, 79, 4, 57, "Input"], Cell[9090, 320, 314, 7, 65, "Text"], Cell[9407, 329, 201, 5, 72, "Input"], Cell[9611, 336, 49, 0, 31, "Text"], Cell[9663, 338, 88, 4, 57, "Input"], Cell[9754, 344, 250, 7, 48, "Text"], Cell[10007, 353, 90, 4, 57, "Input"] }, Closed]] }, Open ]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)