(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. 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[ 8732, 328]*) (*NotebookOutlinePosition[ 9424, 352]*) (* CellTagsIndexPosition[ 9380, 348]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell[TextData[{ StyleBox["261 ", FontColor->RGBColor[0, 0, 1]], StyleBox["Mathematica", FontSlant->"Italic", FontColor->RGBColor[0, 0, 1]], StyleBox[" Session 1", FontColor->RGBColor[0, 0, 1]] }], "Subtitle", TextAlignment->Center, TextJustification->0], Cell["\<\ Congratulations, you successfully loaded the first notebook. \ \>", "Text"], Cell[TextData[StyleBox["Be sure to switch control of the keyboard and mouse \ regularly, so that all group members can be equally frustrated.", FontWeight->"Bold", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell[CellGroupData[{ Cell["Clear symbols", "Section", Evaluatable->False, AspectRatioFixed->True], Cell["\<\ In order to avoid interference from symbols defined in other notebooks, we \ first Clear all symbols. We assume that the relevant symbols are in the \ Global` context.\ \>", "Text", Evaluatable->False, AspectRatioFixed->True], Cell["Clear[\"Global`*\"]", "Input", AspectRatioFixed->True] }, Open ]], Cell[CellGroupData[{ Cell["Overview", "Section"], Cell[CellGroupData[{ Cell[TextData[{ StyleBox["Mathematica", FontSlant->"Italic", FontColor->RGBColor[0, 1, 0]], StyleBox[" Short Cuts", FontColor->RGBColor[0, 1, 0]] }], "Subsection"], Cell[TextData[{ StyleBox["Use the Enter key at the far right (on the numeric keypad) to \ evaluate an expression --- you don't need to hold down Shift! ", "Text"], StyleBox["Try it!", "Text", FontColor->RGBColor[1, 0, 0]], StyleBox["\n\n", "Text"], "Keyboard Copy and Paste. Whenever possible, use the Copy and Paste \ functions to save time but also to cut down on errors (for example, when \ using a function found in the Help Browser). Ctrl-c and Ctrl-p are a \ convenient shortcut to using\nthe menu versions of Copy and Paste. (Ctrl-x \ is Cut.)\n\n", StyleBox["Command completion!", FontColor->RGBColor[1, 0, 0]], " This is activated by Ctrl-k (under Windows; alt-K under Linux). If you \ start typing a function and then press Ctrl-k, a pop-up menu will show all of \ the (loaded) ", StyleBox["Mathematica", FontSlant->"Italic"], " commands that start with the letters you've typed. You can select among \ the choices to avoiding typing (and misspelling) the function name. \n", StyleBox["Try it with the letters Sin and then try your own.\n\n", FontColor->RGBColor[1, 0, 0]], "Referring to previous results: Use % to refer to the last result and %10 \ to refer to the result Out[10]. For example:" }], "Text"], Cell[BoxData[ \(5^2\)], "Input"], Cell[BoxData[ \(Sqrt[%]\)], "Input"], Cell[BoxData[""], "Input"] }, Open ]], Cell[CellGroupData[{ Cell[TextData[StyleBox[" Palettes --- First Pass ", FontColor->RGBColor[0, 1, 0]]], "Subsection"], Cell[TextData[{ "The BasicCalculations and BasicInputs palettes are particularly useful.\n \ 1. Open these palettes by going under the File menu, and selecting \ \"Palettes\" etc.\n 2. Try calculating ", Cell[BoxData[ \(TraditionalForm\`\@27\%3\)]], " using the BasicInputs palette.\n Use Cell -> Convert to . . . to \ convert to InputForm and then back\n to StandardForm and then to \ TraditionalForm.\n 3. Take a quick look at the BasicCalculations palette. \ We'll use it below.\n It provides a quick-reference to basic ", StyleBox["Mathematica", FontSlant->"Italic"], " functions and syntax.\n Try: a) calculate \[Pi] to 1000 digits;\n \ b) solve the quadratic equation a", Cell[BoxData[ \(TraditionalForm\`x\^2\)]], " + bx + c = 0.\n c) plot the function ", Cell[BoxData[ \(TraditionalForm\`\(sin(x)\)/x\)]], " from -10 to 10." }], "Text"] }, Closed]] }, Open ]], Cell[CellGroupData[{ Cell[TextData[{ "Some Chapter 1 Related ", StyleBox["Mathematica", FontSlant->"Italic"], " Stuff" }], "Section"], Cell["", "Text"], Cell[CellGroupData[{ Cell[TextData[{ "Vectors with ", StyleBox["Mathematica", FontSlant->"Italic"], " " }], "Subsection"], Cell[TextData[{ "In ", StyleBox["Mathematica ", FontSlant->"Italic"], "a vector is just a list of its components. Let's define two specific \ vectors by evaluating the following cells. Note that the use of curly \ brackets" }], "Text"], Cell[BoxData[ \(v1\ = \ {1, 2, 3}\)], "Input"], Cell[BoxData[ \(v2\ = \ {2, 3, 4}\)], "Input"], Cell["Here are some of the things you can now compute:", "Text"], Cell[BoxData[ \(v1\ + \ v2\)], "Input"], Cell[BoxData[ \(Dot[v1, v2]\)], "Input"], Cell[BoxData[ \(Cross[v1, v2]\)], "Input"], Cell[TextData[{ "Check your answers to PS#1 problem 1.\nNote that ", StyleBox["Mathematica", FontSlant->"Italic"], " is quite content to work with symbols in place of actual numbers:" }], "Text"], Cell[BoxData[ \(a\ = \ {Ax, Ay, Az}\)], "Input"], Cell[BoxData[ \(b\ = \ {Bx, By, Bz}\)], "Input"], Cell[BoxData[ \(Dot[a, b]\)], "Input"], Cell[TextData[{ "Here is how we can show that ", StyleBox["A \[SmallCircle] (A \[Times] B)", FontWeight->"Bold"], " = 0 :" }], "Text"], Cell[BoxData[ \(V\ = \ Dot[a, Cross[a, b]]\)], "Input"], Cell[TextData[{ "This may not immediately look like zero, but it is. We just have to tell \ ", StyleBox["Mathematica", FontSlant->"Italic"], " to simplify:" }], "Text"], Cell[BoxData[ \(Simplify[V]\)], "Input"], Cell[TextData[{ "Here is an exercise you can try: use ", StyleBox["Mathematica", FontSlant->"Italic"], " to prove the vector identity\n ", StyleBox["a \[Times] (b \[Times] c) = b (a \[SmallCircle] c) - c (a \ \[SmallCircle] b). \n", FontWeight->"Bold"], "Try it first on your own before opening up the solution cell below." }], "Text"], Cell[CellGroupData[{ Cell["Solution", "Subsubsection"], Cell[BoxData[ \(\(\(c\)\(\ \)\(=\)\(\ \)\({Cx, Cy, Cz}\)\(\[IndentingNewLine]\)\)\)], "Input"], Cell[BoxData[ \(Cross[a, Cross[b, c]]\ - \ Dot[a, c]*b + Dot[a, b]*c\)], "Input"], Cell[BoxData[ \(Simplify[%]\)], "Input"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[" Plotting Functions", "Subsection"], Cell["\<\ Time and time again we will want to plot functions. For example:\ \>", "Text"], Cell[BoxData[ \(Plot[Sin[x], {x, 0, 6\ Pi}]\)], "Input"] }, Open ]], Cell[CellGroupData[{ Cell[" Calculus", "Subsection"], Cell["To take a derivative:", "Text"], Cell[BoxData[ \(D[Sin[x], x]\)], "Input"], Cell["Now think of an ugly one and try it.", "Text"], Cell["Or to integrate (indefinite):", "Text"], Cell[BoxData[ \(Integrate[Sin[x], x]\)], "Input"], Cell["With definite limits:", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Integrate[Exp[\(-x\)], {x, 0, 3}]\)], "Input"], Cell[BoxData[ \(1 - 1\/\[ExponentialE]\^3\)], "Output"] }, Open ]], Cell["\<\ Try it with limits from 0 to Infinity \ \>", "Text"] }, Open ]] }, Open ]] }, Open ]] }, FrontEndVersion->"5.2 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 693}}, WindowToolbars->"EditBar", WindowSize->{1016, 666}, WindowMargins->{{0, Automatic}, {Automatic, 0}}, ShowSelection->True ] (******************************************************************* 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[1776, 53, 279, 10, 52, "Subtitle"], Cell[2058, 65, 85, 3, 52, "Text"], Cell[2146, 70, 207, 3, 33, "Text"], Cell[CellGroupData[{ Cell[2378, 77, 80, 2, 73, "Section", Evaluatable->False], Cell[2461, 81, 240, 6, 33, "Text", Evaluatable->False], Cell[2704, 89, 62, 1, 30, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[2803, 95, 27, 0, 73, "Section"], Cell[CellGroupData[{ Cell[2855, 99, 179, 6, 38, "Subsection"], Cell[3037, 107, 1260, 24, 223, "Text"], Cell[4300, 133, 36, 1, 30, "Input"], Cell[4339, 136, 40, 1, 30, "Input"], Cell[4382, 139, 26, 0, 30, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[4445, 144, 99, 1, 38, "Subsection"], Cell[4547, 147, 953, 20, 207, "Text"] }, Closed]] }, Open ]], Cell[CellGroupData[{ Cell[5549, 173, 122, 5, 73, "Section"], Cell[5674, 180, 16, 0, 33, "Text"], Cell[CellGroupData[{ Cell[5715, 184, 110, 5, 38, "Subsection"], Cell[5828, 191, 247, 7, 33, "Text"], Cell[6078, 200, 51, 1, 30, "Input"], Cell[6132, 203, 51, 1, 30, "Input"], Cell[6186, 206, 64, 0, 33, "Text"], Cell[6253, 208, 44, 1, 30, "Input"], Cell[6300, 211, 44, 1, 30, "Input"], Cell[6347, 214, 46, 1, 30, "Input"], Cell[6396, 217, 205, 5, 52, "Text"], Cell[6604, 224, 53, 1, 30, "Input"], Cell[6660, 227, 53, 1, 30, "Input"], Cell[6716, 230, 42, 1, 30, "Input"], Cell[6761, 233, 144, 5, 33, "Text"], Cell[6908, 240, 60, 1, 30, "Input"], Cell[6971, 243, 179, 6, 33, "Text"], Cell[7153, 251, 44, 1, 30, "Input"], Cell[7200, 254, 359, 9, 71, "Text"], Cell[CellGroupData[{ Cell[7584, 267, 33, 0, 29, "Subsubsection"], Cell[7620, 269, 107, 2, 50, "Input"], Cell[7730, 273, 86, 1, 30, "Input"], Cell[7819, 276, 44, 1, 30, "Input"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[7912, 283, 41, 0, 38, "Subsection"], Cell[7956, 285, 88, 2, 33, "Text"], Cell[8047, 289, 60, 1, 30, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[8144, 295, 31, 0, 38, "Subsection"], Cell[8178, 297, 37, 0, 33, "Text"], Cell[8218, 299, 45, 1, 30, "Input"], Cell[8266, 302, 52, 0, 33, "Text"], Cell[8321, 304, 45, 0, 33, "Text"], Cell[8369, 306, 53, 1, 30, "Input"], Cell[8425, 309, 37, 0, 33, "Text"], Cell[CellGroupData[{ Cell[8487, 313, 66, 1, 30, "Input"], Cell[8556, 316, 59, 1, 42, "Output"] }, Open ]], Cell[8630, 320, 62, 3, 52, "Text"] }, Open ]] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)