(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.1' 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[ 25875, 527]*) (*NotebookOutlinePosition[ 26786, 560]*) (* CellTagsIndexPosition[ 26683, 553]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Math 2374 Notebook Template - 8/31/04 Version", "Subsubsection", CellTags->"initgroup"], Cell["\<\ You should not do anything with this section. These cells make sure that \ certain commands are loaded and defined. If you don't evaluate these \ initialization cells, certain parts of your labs will not work.\ \>", "Text", CellFrame->True, Background->GrayLevel[0.849989]], Cell["\<\ We're going to try to load every package and define every new command which \ will be needed this semester. Experience has shown that asking students to \ load packages causes more problems than it's worth. This new approach has \ the disadvantage that students will never learn how to load a package. But \ anybody who is interested enough in Mathematica to want to load new packages \ can probably figure out how. (Perhaps with the help of a TA, if needed.) Jonathan Rogness rogness@math.umn.edu Spring 2004 PS. If you're teaching this class and I'm not around, make sure that you use \ the correct commands below to define the ShowLive command. Things sometimes \ need to be changed according to the location of the Java tree.\ \>", "Text"], Cell[TextData[{ "\n", StyleBox["UPDATE", FontWeight->"Bold"], " -- now that the math department is using Fedora, none of this matters. \ (I think.) This file should be updated, with all of this complicated \ nonsense removed....\n", "\nHere is the section which defines the ShowLive command. This is based \ on LiveGraphics3D by Martin Kraus. The math department's Java tree is \ organized differently than most, so you have to comment out the appropriate \ command below.\n\nI don't do anything to add live.jar to the ClassPath here. \ This works fine as long as the file live.jar is in either of the following \ directories:\n\n(system wide base ", StyleBox["Mathematica", FontSlant->"Italic"], " 5.0 directory)/AddOns/Applications/LiveGraphics3D/Java/\n\ ~/.Mathematica/Applications/LiveGraphics3D/Java/\n\nCurrently Brad has set \ this up via the system-wide method on the math department computers; the base \ directory is /usr/local/math5.0/. We haven't had to do this in the IT Labs \ yet." }], "Text", CellFrame->{{0, 0}, {0, 2}}], Cell[BoxData[{ \(\(\(Needs["\"]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\ \( (*\ Simple\ version\ of\ the\ command\ now\ works\ for\ Math\ Dept\ \ Systems\ *) \)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\) \) (*\ On\ IT\ Systems, \ use\ the\ first\ version . \ \ On\ Math\ Department\ Systems, \ use\ the\ second\ version . \ \ In\ either\ case, \ you\ should\ comment\ out\ the\ one\ you\ _don' t_\ want\ students\ to\ use ... \ *) \), "\[IndentingNewLine]", \(\(\(InstallJava[];\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(\(\(ShowLive[graphics__, opts___Rule] := \[IndentingNewLine]Module[{g = Show[Switch[{graphics}, __ContourGraphics, Graphics3D[SurfaceGraphics[{graphics}]], __DensityGraphics, Graphics3D[SurfaceGraphics[{graphics}]], __SurfaceGraphics, Graphics3D[{graphics}], __, {graphics}], DisplayFunction \[Rule] Identity, opts], liveApplet, liveFrame}, BeginJavaBlock[]; \[IndentingNewLine]liveApplet = JavaNew["\"]; \n liveFrame = JavaNew["\", liveApplet, {"\" <> ToString[ InputForm[N[g]]], "\", "\"}]; EndJavaBlock[]; \[IndentingNewLine]Return[ ToExpression[ StringReplace[ ToString[ InputForm[ g]], "\ Identity\>"\ \[Rule] \ \ "\ $DisplayFunction\>"]]];]\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(Plot3DLive[x__] := ShowLive[Plot3D[x, DisplayFunction \[Rule] Identity]]\), "\[IndentingNewLine]", \(\(\(ParametricPlot3DLive[x__] := ShowLive[ParametricPlot3D[x, DisplayFunction \[Rule] Identity]]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\( (*\ Make\ sure\ things\ are\ backlit, \ since\ we' ll\ be\ rotating\ pictures\ and\ looking\ at\ them\ from\ all\ \ directions . \ \ This\ is\ Mathematica' s\ default, \ plus\ a\ white\ source\ underneath . \ \ Thanks\ to\ Martin\ Kraus\ for\ \ the\ suggestion . \ \ \([This\ is\ LiveGraphics3D' s\ default, \ but\ Mathematica\ occasionally\ overrides\ \(\(it\)\(.\)\)]\)\ \ *) \)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(\(SetOptions[ Plot3D, \[IndentingNewLine]LightSources \[Rule] {{{1, 0, 1}, RGBColor[1, 0, 0]}, {{1, 1, 1}, RGBColor[0, 1, 0]}, {{0, 1, 1}, RGBColor[0, 0, 1]}, {{0, 0, \(-1\)}, RGBColor[1, 1, 1]}}];\)\), "\[IndentingNewLine]", \(\(SetOptions[ ParametricPlot3D, \[IndentingNewLine]LightSources \[Rule] {{{1, 0, 1}, RGBColor[1, 0, 0]}, {{1, 1, 1}, RGBColor[0, 1, 0]}, {{0, 1, 1}, RGBColor[0, 0, 1]}, {{0, 0, \(-1\)}, RGBColor[1, 1, 1]}}];\)\[IndentingNewLine]\[IndentingNewLine] (*\ Now\ ImplicitPlot\ and\ ContourPlot\ *) \[IndentingNewLine]\), "\ \[IndentingNewLine]", \(\(Off[General::spell];\)\), "\n", \(\(Off[General::spell1];\)\), "\n", \(Needs["\"]\), "\[IndentingNewLine]", \(\(\(Needs["\"]\)\(\[IndentingNewLine]\)\(\n\) \) (*\ Now\ some\ other\ packages\ which\ get\ used\ now\ and\ \(\(then\)\(.\)\ \)\ *) \), "\[IndentingNewLine]", \(Needs["\"]\), "\[IndentingNewLine]", \(Needs["\"]\), "\[IndentingNewLine]", \(Needs["\"]\), "\[IndentingNewLine]", \(\(\(Needs["\"]\)\(\[IndentingNewLine]\)\(\ \[IndentingNewLine]\) \) (*\ Vector\ Analysis\ Stuff\ *) \), "\[IndentingNewLine]", \(Needs["\"]\), "\[IndentingNewLine]", \(\(\(SetCoordinates[Cartesian[x, y, z]];\)\(\[IndentingNewLine]\) \) (*\ Here' s\ a\ really\ cheap\ way\ of\ defining\ a\ 2 D\ grad\ function\ *) \), "\[IndentingNewLine]", \(\(\(Grad2D[f_, opts___] := {\(Grad[f, opts]\)[\([1]\)], \(Grad[f, opts]\)[\([2]\)]}\)\(\[IndentingNewLine]\) \) (*\ \(Argh\ --\)\ Mathematica\ now\ comes\ with\ a\ Norm\ function, \ but\ it\[IndentingNewLine]\ \ assumes\ we' re\ dealing\ with\ complex\ numbers, \ giving\[IndentingNewLine]\ \ monstrosities\ like\ Sqrt[ Abs[x]^2 + Abs[y]^2] . \ \ So\ we\ not\ only\[IndentingNewLine]\ \ have\ \ to\ do\ it\ the\ old\ fashioned\ way, \ but\ first\ we\ have\[IndentingNewLine]\ \ to\ use\ the\ Attributes\ \ command\ to\ allow\ Norm\ to\ be\ \[IndentingNewLine]\ \ \(redefined!\)\ *) \ \), "\[IndentingNewLine]", \(\(Attributes[Norm] = {};\)\), "\[IndentingNewLine]", \(\(\(Norm[v_] = Sqrt[v . v];\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(\(Options[Arrow3D] = {HeadLength \[Rule] 0.3, HeadNormal \[Rule] {0, 0, 1}, HeadWidth \[Rule] 0.5};\)\), "\[IndentingNewLine]", \(\(Arrow3D[a_, b_, opts___] := Module[{abLength = N[Sqrt[\((b - a)\) . \((b - a)\)]], abUnit, headPerp, headPerpLength, headLength, headNormal, headWidth}, {headLength, headNormal, headWidth} = \({HeadLength, HeadNormal, HeadWidth} /. {opts}\) /. Options[Arrow3D]; \[IndentingNewLine]abUnit = \((b - a)\)/ abLength; \[IndentingNewLine]headPerp = Cross[abUnit, N[headNormal]]; \[IndentingNewLine]headPerp = headPerp/ Sqrt[N[headPerp . headPerp]]; \[IndentingNewLine]{Line[{a, b - abUnit*headLength}], Polygon[{b, b - abUnit*headLength + headPerp*headWidth/2*headLength, b - abUnit*headLength, b - abUnit*headLength - headPerp*headWidth/2* headLength}]}];\)\[IndentingNewLine]\[IndentingNewLine]\ \[IndentingNewLine] (*\ Next\ up\ - \ my\ Arctools . m\ \(\(package\)\(.\)\)\ \ *) \[IndentingNewLine]\ \[IndentingNewLine] (*\ This\ is\ a\ conglomeration\ of\ two\ packages . \ \n\n"\"\ \ and\ "\"\ are\ taken\ from\ a\ package\n created\ at\ Lafayette\ College\ named\ "\"\ \n The\ original\ message\ from\ that\ package\ \(follows : \n\n\t This\ package\ may\ be\ distributed\ freely\), \ but\ is\ \n\tcopyright\ by\ Lafayette\ College, \ 1994. \n\n\((Note\ that\ the\ command\ "\"\ has\ been\ removed\ \ from\ \nthe\ package, \ and\ the\ remaining\ function\ names\ have\ been\n capitalized\ to\ correspond\ to\ standard\ \(\(usage\)\(.\)\))\)\n\ \nPathAnimate\ and\ PathTangentAnimate\ were\ written\ for\ use\ \n at\ the\ University\ of\ Minnesota\ in\ 2002. \ \ They\ may\ be\ \ freely\ \nused, \ but\ please\ keep\ this\ message\ intact . \n\nThis\ hodge - podge\ was\ created\ because\ these\ three\ commands\n are\ used\ in\ one\ of\ our\ labs\ for\ MATH\ 2374, \ Multivariable\n Calculus . \n\nQuestions\ \(to : \ rogness@math . umn . edu\)\n*) \n\[IndentingNewLine]\), "\[IndentingNewLine]", \(\(\(Segments::usage = "\";\)\(\n\) \)\), "\n", \(\(\(Estimate::usage = "\";\)\(\n\) \)\), "\n", \(\(\(PathAnimate::usage = "\";\)\(\n\) \)\), "\n", \(\(\(PathTangentAnimate::usage = \ "\";\)\(\n\) \)\), "\[IndentingNewLine]", \(\(\(PathAnimate3D::usage = "\";\)\(\ \[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(\(\(PathTangentAnimate3D::usage = "\";\)\(\n\) \)\), "\[IndentingNewLine]", \(\(\(DoAnimation::usage = "\";\)\(\n\) \)\t\), "\n", \(\(Needs["\"];\)\), "\n", \(\(\(Needs["\"];\)\(\n\) \)\), "\n", \(\(\(Segments[funclist_, paramlist_, n_, options___]\ := \n\ \ Block[{tmin, \ tmax, \ plotcurve, \ plotlines, \ points, \n\ \ \ \ stepsize, \ param}, \n\ \ \ \ param\ = \ paramlist[\([1]\)]; \n\ \ \ \ tmin\ = \ paramlist[\([2]\)]; \ tmax\ = \ paramlist[\([3]\)]; \n\ \ \ \ stepsize\ = \ \((tmax\ - \ tmin)\)/ n; \n\ \ \ \ plotcurve\ = \ ParametricPlot[ Evaluate[funclist /. param -> t], \n\ \ \ \ \ \ {t, tmin, tmax}, PlotStyle -> RGBColor[1, 0, 0], \n\ \ \ \ \ \ DisplayFunction -> Identity]; \n\ \ \ \ plotlines\ = \ Graphics[{RGBColor[0, 0, 1], \ Line[Table[\n\ \ \ \ \ \ funclist /. param -> t, \n\ \ \ \ \ \ {t, \ tmin, \ tmax, \ stepsize}\ ]]}]; \n\ \ \ \ points\ = \ Table[Graphics[{RGBColor[0, 0, 1], \ Point[\n\ \ \ \ \ \ funclist /. param -> t\ ]}], \n\ \ \ \ \ \ {t, \ tmin, \ tmax, \ stepsize}]; \n\ \ \ \ Show[plotcurve, plotlines, \ points, options, \n\ \ \ \ \ \ DisplayFunction -> $DisplayFunction]\n\ \ \ \ \ ]\)\(\n\) \)\), "\n", \(\(\(Estimate[funclist_, paramlist_, n_]\ := \n\ \ Block[{tmin, \ tmax, \ h, \ param, \ k}, \n\ \ \ \ param\ = \ paramlist[\([1]\)]; \n\ \ \ \ tmin\ = \ paramlist[\([2]\)]; \n\ \ \ \ tmax\ = \ paramlist[\([3]\)]; \n\ \ \ \ h\ = \ \((tmax\ - \ tmin)\)/ n; \n\ \ \ \ Sum[ N[Sqrt[\n\ \ \ \ \ \ \((\((funclist[\([1]\)]\ /. \ param\ -> \ k\ h)\)\ - \n\ \ \ \ \ \ \ \((funclist[\([1]\)]\ \ /. \ param\ -> \ \((k - 1)\) h)\))\)^2\n\ \ \ \ + \ \((\((funclist[\([2]\)]\ \ /. \ param\ -> \ k\ h)\)\ - \n\ \ \ \ \ \ \ \((funclist[\([2]\)]\ /. \ param\ -> \ \((k - 1)\) h)\))\)^2]], \n\ \ \ \ \ \ {k, 1, n}]\n\ \ \ \ ]\)\(\n\) \)\), "\n", \(\(\(PathAnimate[funclist_, paramlist_, n_, options___] := DoAnimation[funclist, paramlist, n, 0, 2, options]\)\(\n\) \)\), "\[IndentingNewLine]", \(PathTangentAnimate[funclist_, paramlist_, n_, options___] := DoAnimation[funclist, paramlist, n, 1, 2, options]\), "\n", \(\(hi = 4;\)\), "\[IndentingNewLine]", \(\(\(PathAnimate3D[funclist_, paramlist_, n_, options___] := DoAnimation[funclist, paramlist, n, 0, 3, options]\)\(\[IndentingNewLine]\) \)\), "\n", \(\(\(PathTangentAnimate3D[funclist_, paramlist_, n_, options___] := DoAnimation[funclist, paramlist, n, 1, 3, options]\)\(\n\) \)\), "\[IndentingNewLine]", \(\(Off[General::spell];\)\), "\n", \(\(DoAnimation[funclist_, paramlist_, n_, flag_, dim_, options___] := Block[{tmin, tmax, stepsize, param, graph, s, t, f, Df, x, Dx, y, Dy, z, Dz, xmin, xmax, ymin, ymax, zmin, zmax, radius}, param = paramlist[\([1]\)]; \[IndentingNewLine]tmin = paramlist[\([2]\)]; tmax = paramlist[\([3]\)]; \[IndentingNewLine]stepsize = \((tmax - tmin)\)/n; \[IndentingNewLine] (*Note : flag\ should\ be\ True\ \((1)\)\ or\ False\ \((0)\) . If\ it' s\ false, then\ only\ the\ position\ of\ the\ particle\ is\ animated . If\ it' s\ true, then\ the\ tangent\ vectors\ are\ also\ shown . dim \((ension)\)\ should\ be\ either\ 2\ or\ 3, and\ should\ correspond\ to\ the\ number\ of\ components\ in\ the\ \ \(\(parametrization\)\(.\)\)*) (*These\ could\ be\ done\ within\ the\ \ later\ commands, but\ I' m\ doing\ them\ here\ just\ to\ make\ those\ commands\ \ easier\ to\ read . Also, I' m\ going\ to\ handle\ the\ third\ dimension\ inefficiently\ \ here . It\ won' t\ slow\ the\ command\ down\ too\ much\ and\ it' s\ easier\ to\ be\ lazy . If\ there' s\ a\ third\ dimension, we' ll\ use\ it . If\ not\ we' ll\ double\ up\ the\ work\ in\ the\ first\ \(\(dimension\)\(.\)\ \)*) f[t_] = Evaluate[funclist /. param \[Rule] t]; \[IndentingNewLine]Df[ t_] = D[f[t], t]; \[IndentingNewLine]x[t_] = \(f[t]\)[\([1]\)]; Dx[t_] = D[x[t], t]; \[IndentingNewLine]y[t_] = \(f[t]\)[\([2]\)]; Dy[t_] = D[y[t], t]; \[IndentingNewLine]Which[dim \[Equal] 2, z[t_] = \(f[t]\)[\([1]\)]; Dz[t_] = D[z[t], t], dim \[Equal] 3, z[t_] = \(f[t]\)[\([3]\)]; Dz[t_] = D[z[t], t]]; \[IndentingNewLine]Off[ ParametricPlot::ppcom]; \[IndentingNewLine]Off[ ParametricPlot3D::ppcom]; \ \[IndentingNewLine]Off[$MaxExtraPrecision::meprec]; \[IndentingNewLine] (*Try\ \ to\ determine\ a\ good\ PlotRange . This\ isn' t\ a\ perfect\ method, but\ Mathematica\ can' t\ find\ global\ extrema, even\ for\ fairly\ simple\ functions\ on\ a\ compact\ interval . \ \([I\ don' t\ want\ to\ rely\ on\ the\ Experimental\ package ... ]\ \)\ I\ need\ two\ separate\ procedures\ depending\ on\ whether\ I\ need\ to\ \ include\ tangent\ vectors\ or\ \(\(not\)\(.\)\)*) xmin = \(xmax = x[tmin]\); ymin = \(ymax = y[tmin]\); zmin = \(zmax = z[tmin]\); \[IndentingNewLine]Which[ flag \[Equal] 0, \(Do[xmin = Min[x[s], xmin]; \[IndentingNewLine]xmax = Max[x[s], xmax]; \[IndentingNewLine]ymin = Min[y[s], ymin]; \[IndentingNewLine]ymax = Max[y[s], ymax]; \[IndentingNewLine]zmin = Min[z[s], zmin]; \[IndentingNewLine]zmax = Max[z[s], zmax];, {s, tmin, tmax, stepsize}];\), flag \[Equal] 1, \(Do[xmin = Min[x[s] + Dx[s], xmin]; \[IndentingNewLine]xmax = Max[x[s] + Dx[s], xmax]; \[IndentingNewLine]ymin = Min[y[s] + Dy[s], ymin]; \[IndentingNewLine]ymax = Max[y[s] + Dy[s], ymax]; \[IndentingNewLine]zmin = Min[z[s] + Dz[s], zmin]; \[IndentingNewLine]zmax = Max[z[s] + Dz[s], zmax];, {s, tmin, tmax, stepsize}];\)]; \[IndentingNewLine] (*This\ is\ kind\ of\ a\ \ superfluous\ step, but\ we\ need\ to\ increase\ the\ ranges\ just\ a\ tad\ or\ \ points\ on\ the\ edge\ of\ the\ box\ won' t\ be\ displayed . These\ lines\ also\ prevent\ problems\ if\ x[ t], y[t], or\ z[t]\ are\ \(\(constant\)\(.\)\)*) xmin = xmin - 0.1; \[IndentingNewLine]ymin = ymin - 0.1; \[IndentingNewLine]zmin = zmin - 0.1; \[IndentingNewLine]xmax = xmax + 0.1; \[IndentingNewLine]ymax = ymax + 0.1; \[IndentingNewLine]zmax = zmax + 0.1; \[IndentingNewLine]Which[dim \[Equal] 2, graph = ParametricPlot[f[t], {t, tmin, tmax}, DisplayFunction \[Rule] Identity, AspectRatio \[Rule] Automatic, PlotRange \[Rule] {{xmin, xmax}, {ymin, ymax}}, options], dim \[Equal] 3, graph = ParametricPlot3D[f[t], {t, tmin, tmax}, DisplayFunction \[Rule] Identity, AspectRatio \[Rule] Automatic, PlotRange \[Rule] {{xmin, xmax}, {ymin, ymax}, {zmin, zmax}}, options]]; \[IndentingNewLine]radius = Min[Abs[xmax - xmin], Abs[ymax - ymin], Abs[zmax - zmin]]/ 60; \[IndentingNewLine]radius = Min[radius, 0.03]; \[IndentingNewLine]radius = Max[radius, 0.03]; \[IndentingNewLine]Do[ Show[graph, If[dim \[Equal] 2, (*Are\ we\ showing\ Tangent\ \(\(Vectors\)\(?\)\)*) If[ flag \[Equal] 1, Graphics[{Hue[0], Arrow[f[t], f[t] + Df[t]]}], Graphics[{PointSize[radius], Point[f[t]]}]], If[flag \[Equal] 1, Graphics3D[{Hue[0], Line[{f[t], f[t] + Df[t]}]}], Graphics3D[{PointSize[radius], Point[f[t]]}]]], If[dim \[Equal] 2, Graphics[{PointSize[radius], Point[f[t]]}], Graphics3D[{PointSize[radius], Point[f[t]]}]], DisplayFunction \[Rule] $DisplayFunction, AspectRatio \[Rule] Automatic, If[dim \[Equal] 2, PlotRange \[Rule] {{xmin, xmax}, {ymin, ymax}}, PlotRange \[Rule] {{xmin, xmax}, {ymin, ymax}, {zmin, zmax}}], options], {t, tmin, tmax, \((tmax - tmin)\)/ n}];];\)\[IndentingNewLine]\[IndentingNewLine]\), "\ \[IndentingNewLine]", \( (*\ For\ the\ record, \ the\ button\ which\ loads\ the\ commands\ was\ created\ with\ the\ \ following\ command; \ the\ button\ was\ then\ cut\ and\ pasted\ into\ its\ current\ \ \(location : \[IndentingNewLine]\[IndentingNewLine]Cell[ BoxData[ButtonBox[ StyleBox["\", FontWeight \[Rule] Bold, FontVariations \[Rule] {"\" \[Rule] False}, FontColor \[Rule] RGBColor[0, 0, 0]], \[IndentingNewLine]ButtonFunction \[RuleDelayed] Module[{nb = ButtonNotebook[]}, \ \[IndentingNewLine]NotebookLocate["\"]; \ \[IndentingNewLine]SelectionEvaluateCreateCell[ nb]; \[IndentingNewLine]SelectionMove[nb, After, ButtonCell]; \[IndentingNewLine]CellPrint[ Cell["\", \ "\", FontWeight -> "\", CellFrame \[Rule] True, Background \[Rule] GrayLevel[0.699992], TextAlignment \[Rule] Center]]; \ \[IndentingNewLine]FrontEndExecute[{FrontEnd`NotebookFind[ FrontEnd`InputNotebook[], \ \[IndentingNewLine]"\", All, CellTags], FrontEndToken[ FrontEnd`InputNotebook[], \ "\"]}]; SelectionMove[nb, After, Notebook];], ButtonEvaluator \[Rule] Automatic, Active \[Rule] True, ButtonFrame -> "\", Background \[Rule] GrayLevel[0.7], ButtonMargins \[Rule] 5]], TextAlignment \[Rule] Center]\) // CellPrint\[IndentingNewLine]\[IndentingNewLine]*) \)}], "Input", ShowCellTags->False, CellTags->"initcell"] }, Closed]], Cell[CellGroupData[{ Cell[TextData[{ "You should click on the button below before you begin reading any labs or \ doing your own work. If you use ", StyleBox["Mathematica", FontSlant->"Italic"], " to write your solutions to lab exercises, please don't include this \ message or the template header above; delete them before handing anything \ in." }], "Subsubsection", CellFrame->True, Background->GrayLevel[0.859998]], Cell[BoxData[ ButtonBox[ StyleBox[\(Click\ Here\ to\ Load\ Math\ 2374\ Commands\), FontWeight->"Bold", FontColor->GrayLevel[0], FontVariations->{"Underline"->False}], ButtonFunction:>Module[ { Set[ nb, ButtonNotebook[ ]]}, CompoundExpression[ NotebookLocate[ "initcell"], SelectionEvaluateCreateCell[ nb], SelectionMove[ nb, After, ButtonCell], CellPrint[ Cell[ "Done! You can now continue working.", "Text", FontWeight -> "Bold", CellFrame -> True, Background -> GrayLevel[ 0.69999199999999995], TextAlignment -> Center]], FrontEndExecute[ { FrontEnd`NotebookFind[ FrontEnd`InputNotebook[ ], "initgroup", All, CellTags], FrontEndToken[ FrontEnd`InputNotebook[ ], "SelectionCloseAllGroups"]}], SelectionMove[ nb, After, Notebook], Null]], ButtonEvaluator->Automatic, Active->True, ButtonMargins->5, ButtonFrame->"DialogBox", Background->GrayLevel[0.699992]]], GeneratedCell->True, CellAutoOverwrite->True, TextAlignment->Center] }, Open ]] }, FrontEndVersion->"5.1 for X", ScreenRectangle->{{0, 1600}, {0, 1200}}, AutoGeneratedPackage->Automatic, WindowSize->{675, 849}, WindowMargins->{{9, Automatic}, {Automatic, 25}} ] (******************************************************************* 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->{ "initgroup"->{ Cell[1776, 53, 95, 1, 28, "Subsubsection", CellTags->"initgroup"]}, "initcell"->{ Cell[4007, 104, 20157, 372, 4619, "Input", CellTags->"initcell"]} } *) (*CellTagsIndex CellTagsIndex->{ {"initgroup", 26487, 543}, {"initcell", 26581, 546} } *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1776, 53, 95, 1, 28, "Subsubsection", CellTags->"initgroup"], Cell[1874, 56, 289, 6, 66, "Text"], Cell[2166, 64, 769, 15, 248, "Text"], Cell[2938, 81, 1066, 21, 312, "Text"], Cell[4007, 104, 20157, 372, 4619, "Input", CellTags->"initcell"] }, Closed]], Cell[CellGroupData[{ Cell[24201, 481, 412, 10, 70, "Subsubsection"], Cell[24616, 493, 1243, 31, 36, InheritFromParent] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)