(*********************************************************************** 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[ 29202, 795]*) (*NotebookOutlinePosition[ 30100, 824]*) (* CellTagsIndexPosition[ 30056, 820]*) (*WindowFrame->Normal*) Notebook[{ Cell[BoxData[{ \(\(gravity\ = \ {0, \(-32\)};\)\), "\[IndentingNewLine]", \(\(wind[t_, p_] := \ If[p[\([3]\)] > 60, {10, 0, 0}, {0, 0, 0}];\)\)}], "Input"], Cell[BoxData[""], "Input"], Cell[CellGroupData[{ Cell[BoxData[{ \(\(p = {0, 0};\)\), "\[IndentingNewLine]", \(\(v = {100, 100};\)\), "\[IndentingNewLine]", \(\(numTotalSteps = 200;\)\), "\[IndentingNewLine]", \(refreshSteps\ = \ 5\), "\[IndentingNewLine]", \(\(deltaTime\ = \ 1/30;\)\), "\[IndentingNewLine]", \(\(printStop = 5;\)\)}], "Input"], Cell[BoxData[ \(5\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(For[\[IndentingNewLine]i = 0; refresh = refreshSteps; t = deltaTime; slist = {}, \[IndentingNewLine]i < \ numTotalSteps, \[IndentingNewLine]\(i++\); t += deltaTime, \[IndentingNewLine]deltaVelocity = gravity*dt; \[IndentingNewLine]vnew = v + deltaVelocity; \[IndentingNewLine]pnew = p + \((vnew + v)\)*dt/2; \[IndentingNewLine]If[\[IndentingNewLine]i < printStop, \[IndentingNewLine]Print["\", t, "\<)=\>", v, "\<+\>", gravity, "\<*\>", dt, "\<=\>", vnew]; \[IndentingNewLine]Print["\", t, "\<)=\>", p, "\<+ (1/2)*(\>", vnew, "\<+\>", v, "\<)*\>", dt, "\<=\>", pnew];\[IndentingNewLine]]; \[IndentingNewLine]v\ = \ vnew; \[IndentingNewLine]p = pnew; \[IndentingNewLine]If[\[IndentingNewLine]refresh \[Equal] 0, \[IndentingNewLine]refresh = refreshSteps; slist = Append[slist, Graphics[Point[p]]], \[IndentingNewLine]\(refresh = refresh - 1;\)\[IndentingNewLine]]\[IndentingNewLine]]\)], "Input"], Cell[BoxData[ InterpretationBox[\("v("\[InvisibleSpace]1\/30\[InvisibleSpace]")="\ \[InvisibleSpace]{100, 100}\[InvisibleSpace]"+"\[InvisibleSpace]{0, \(-32\)}\ \[InvisibleSpace]"*"\[InvisibleSpace]1\/30\[InvisibleSpace]"="\ \[InvisibleSpace]{100, 1484\/15}\), SequenceForm[ "v(", Rational[ 1, 30], ")=", {100, 100}, "+", {0, -32}, "*", Rational[ 1, 30], "=", {100, Rational[ 1484, 15]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("x("\[InvisibleSpace]1\/30\[InvisibleSpace]")="\ \[InvisibleSpace]{0, 0}\[InvisibleSpace]"+ (1/2)*("\[InvisibleSpace]{100, 1484\/15}\[InvisibleSpace]"+"\[InvisibleSpace]{100, 100}\[InvisibleSpace]")*"\[InvisibleSpace]1\/30\[InvisibleSpace]"="\ \[InvisibleSpace]{10\/3, 746\/225}\), SequenceForm[ "x(", Rational[ 1, 30], ")=", {0, 0}, "+ (1/2)*(", {100, Rational[ 1484, 15]}, "+", {100, 100}, ")*", Rational[ 1, 30], "=", { Rational[ 10, 3], Rational[ 746, 225]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("v("\[InvisibleSpace]1\/15\[InvisibleSpace]")="\ \[InvisibleSpace]{100, 1484\/15}\[InvisibleSpace]"+"\[InvisibleSpace]{0, \(-32\)}\ \[InvisibleSpace]"*"\[InvisibleSpace]1\/30\[InvisibleSpace]"="\ \[InvisibleSpace]{100, 1468\/15}\), SequenceForm[ "v(", Rational[ 1, 15], ")=", {100, Rational[ 1484, 15]}, "+", {0, -32}, "*", Rational[ 1, 30], "=", {100, Rational[ 1468, 15]}], Editable->False]], "Print", GeneratedCell->False, CellAutoOverwrite->False], Cell[BoxData[ InterpretationBox[\("x("\[InvisibleSpace]1\/15\[InvisibleSpace]")="\ \[InvisibleSpace]{10\/3, 746\/225}\[InvisibleSpace]"+ (1/2)*("\[InvisibleSpace]{100, 1468\/15}\[InvisibleSpace]"+"\[InvisibleSpace]{100, 1484\/15}\[InvisibleSpace]")*"\[InvisibleSpace]1\/30\ \[InvisibleSpace]"="\[InvisibleSpace]{20\/3, 1484\/225}\), SequenceForm[ "x(", Rational[ 1, 15], ")=", { Rational[ 10, 3], Rational[ 746, 225]}, "+ (1/2)*(", {100, Rational[ 1468, 15]}, "+", {100, Rational[ 1484, 15]}, ")*", Rational[ 1, 30], "=", { Rational[ 20, 3], Rational[ 1484, 225]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("v("\[InvisibleSpace]1\/10\[InvisibleSpace]")="\ \[InvisibleSpace]{100, 1468\/15}\[InvisibleSpace]"+"\[InvisibleSpace]{0, \(-32\)}\ \[InvisibleSpace]"*"\[InvisibleSpace]1\/30\[InvisibleSpace]"="\ \[InvisibleSpace]{100, 484\/5}\), SequenceForm[ "v(", Rational[ 1, 10], ")=", {100, Rational[ 1468, 15]}, "+", {0, -32}, "*", Rational[ 1, 30], "=", {100, Rational[ 484, 5]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("x("\[InvisibleSpace]1\/10\[InvisibleSpace]")="\ \[InvisibleSpace]{20\/3, 1484\/225}\[InvisibleSpace]"+ (1/2)*("\[InvisibleSpace]{100, 484\/5}\[InvisibleSpace]"+"\[InvisibleSpace]{100, 1468\/15}\[InvisibleSpace]")*"\[InvisibleSpace]1\/30\ \[InvisibleSpace]"="\[InvisibleSpace]{10, 246\/25}\), SequenceForm[ "x(", Rational[ 1, 10], ")=", { Rational[ 20, 3], Rational[ 1484, 225]}, "+ (1/2)*(", {100, Rational[ 484, 5]}, "+", {100, Rational[ 1468, 15]}, ")*", Rational[ 1, 30], "=", {10, Rational[ 246, 25]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("v("\[InvisibleSpace]2\/15\[InvisibleSpace]")="\ \[InvisibleSpace]{100, 484\/5}\[InvisibleSpace]"+"\[InvisibleSpace]{0, \(-32\)}\ \[InvisibleSpace]"*"\[InvisibleSpace]1\/30\[InvisibleSpace]"="\ \[InvisibleSpace]{100, 1436\/15}\), SequenceForm[ "v(", Rational[ 2, 15], ")=", {100, Rational[ 484, 5]}, "+", {0, -32}, "*", Rational[ 1, 30], "=", {100, Rational[ 1436, 15]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("x("\[InvisibleSpace]2\/15\[InvisibleSpace]")="\ \[InvisibleSpace]{10, 246\/25}\[InvisibleSpace]"+ (1/2)*("\[InvisibleSpace]{100, 1436\/15}\[InvisibleSpace]"+"\[InvisibleSpace]{100, 484\/5}\[InvisibleSpace]")*"\[InvisibleSpace]1\/30\[InvisibleSpace]\ "="\[InvisibleSpace]{40\/3, 2936\/225}\), SequenceForm[ "x(", Rational[ 2, 15], ")=", {10, Rational[ 246, 25]}, "+ (1/2)*(", {100, Rational[ 1436, 15]}, "+", {100, Rational[ 484, 5]}, ")*", Rational[ 1, 30], "=", { Rational[ 40, 3], Rational[ 2936, 225]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("v("\[InvisibleSpace]1\/6\[InvisibleSpace]")="\ \[InvisibleSpace]{100, 1436\/15}\[InvisibleSpace]"+"\[InvisibleSpace]{0, \(-32\)}\ \[InvisibleSpace]"*"\[InvisibleSpace]1\/30\[InvisibleSpace]"="\ \[InvisibleSpace]{100, 284\/3}\), SequenceForm[ "v(", Rational[ 1, 6], ")=", {100, Rational[ 1436, 15]}, "+", {0, -32}, "*", Rational[ 1, 30], "=", {100, Rational[ 284, 3]}], Editable->False]], "Print"], Cell[BoxData[ InterpretationBox[\("x("\[InvisibleSpace]1\/6\[InvisibleSpace]")="\ \[InvisibleSpace]{40\/3, 2936\/225}\[InvisibleSpace]"+ (1/2)*("\[InvisibleSpace]{100, 284\/3}\[InvisibleSpace]"+"\[InvisibleSpace]{100, 1436\/15}\[InvisibleSpace]")*"\[InvisibleSpace]1\/30\ \[InvisibleSpace]"="\[InvisibleSpace]{50\/3, 146\/9}\), SequenceForm[ "x(", Rational[ 1, 6], ")=", { Rational[ 40, 3], Rational[ 2936, 225]}, "+ (1/2)*(", {100, Rational[ 284, 3]}, "+", {100, Rational[ 1436, 15]}, ")*", Rational[ 1, 30], "=", { Rational[ 50, 3], Rational[ 146, 9]}], Editable->False]], "Print"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(\(Show[slist, PlotRange -> {{0, 600}, {0, 200}}, Axes\ \[Rule] Automatic];\)\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -3.20924e-17 0.00166667 0 0.00309017 [ [.16667 -0.0125 -9 -9 ] [.16667 -0.0125 9 0 ] [.33333 -0.0125 -9 -9 ] [.33333 -0.0125 9 0 ] [.5 -0.0125 -9 -9 ] [.5 -0.0125 9 0 ] [.66667 -0.0125 -9 -9 ] [.66667 -0.0125 9 0 ] [.83333 -0.0125 -9 -9 ] [.83333 -0.0125 9 0 ] [1 -0.0125 -9 -9 ] [1 -0.0125 9 0 ] [-0.0125 .07725 -12 -4.5 ] [-0.0125 .07725 0 4.5 ] [-0.0125 .15451 -12 -4.5 ] [-0.0125 .15451 0 4.5 ] [-0.0125 .23176 -12 -4.5 ] [-0.0125 .23176 0 4.5 ] [-0.0125 .30902 -18 -4.5 ] [-0.0125 .30902 0 4.5 ] [-0.0125 .38627 -18 -4.5 ] [-0.0125 .38627 0 4.5 ] [-0.0125 .46353 -18 -4.5 ] [-0.0125 .46353 0 4.5 ] [-0.0125 .54078 -18 -4.5 ] [-0.0125 .54078 0 4.5 ] [-0.0125 .61803 -18 -4.5 ] [-0.0125 .61803 0 4.5 ] [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash .16667 0 m .16667 .00625 L s [(100)] .16667 -0.0125 0 1 Mshowa .33333 0 m .33333 .00625 L s [(200)] .33333 -0.0125 0 1 Mshowa .5 0 m .5 .00625 L s [(300)] .5 -0.0125 0 1 Mshowa .66667 0 m .66667 .00625 L s [(400)] .66667 -0.0125 0 1 Mshowa .83333 0 m .83333 .00625 L s [(500)] .83333 -0.0125 0 1 Mshowa 1 0 m 1 .00625 L s [(600)] 1 -0.0125 0 1 Mshowa .125 Mabswid .03333 0 m .03333 .00375 L s .06667 0 m .06667 .00375 L s .1 0 m .1 .00375 L s .13333 0 m .13333 .00375 L s .2 0 m .2 .00375 L s .23333 0 m .23333 .00375 L s .26667 0 m .26667 .00375 L s .3 0 m .3 .00375 L s .36667 0 m .36667 .00375 L s .4 0 m .4 .00375 L s .43333 0 m .43333 .00375 L s .46667 0 m .46667 .00375 L s .53333 0 m .53333 .00375 L s .56667 0 m .56667 .00375 L s .6 0 m .6 .00375 L s .63333 0 m .63333 .00375 L s .7 0 m .7 .00375 L s .73333 0 m .73333 .00375 L s .76667 0 m .76667 .00375 L s .8 0 m .8 .00375 L s .86667 0 m .86667 .00375 L s .9 0 m .9 .00375 L s .93333 0 m .93333 .00375 L s .96667 0 m .96667 .00375 L s .25 Mabswid 0 0 m 1 0 L s 0 .07725 m .00625 .07725 L s [(25)] -0.0125 .07725 1 0 Mshowa 0 .15451 m .00625 .15451 L s [(50)] -0.0125 .15451 1 0 Mshowa 0 .23176 m .00625 .23176 L s [(75)] -0.0125 .23176 1 0 Mshowa 0 .30902 m .00625 .30902 L s [(100)] -0.0125 .30902 1 0 Mshowa 0 .38627 m .00625 .38627 L s [(125)] -0.0125 .38627 1 0 Mshowa 0 .46353 m .00625 .46353 L s [(150)] -0.0125 .46353 1 0 Mshowa 0 .54078 m .00625 .54078 L s [(175)] -0.0125 .54078 1 0 Mshowa 0 .61803 m .00625 .61803 L s [(200)] -0.0125 .61803 1 0 Mshowa .125 Mabswid 0 .01545 m .00375 .01545 L s 0 .0309 m .00375 .0309 L s 0 .04635 m .00375 .04635 L s 0 .0618 m .00375 .0618 L s 0 .09271 m .00375 .09271 L s 0 .10816 m .00375 .10816 L s 0 .12361 m .00375 .12361 L s 0 .13906 m .00375 .13906 L s 0 .16996 m .00375 .16996 L s 0 .18541 m .00375 .18541 L s 0 .20086 m .00375 .20086 L s 0 .21631 m .00375 .21631 L s 0 .24721 m .00375 .24721 L s 0 .26266 m .00375 .26266 L s 0 .27812 m .00375 .27812 L s 0 .29357 m .00375 .29357 L s 0 .32447 m .00375 .32447 L s 0 .33992 m .00375 .33992 L s 0 .35537 m .00375 .35537 L s 0 .37082 m .00375 .37082 L s 0 .40172 m .00375 .40172 L s 0 .41717 m .00375 .41717 L s 0 .43262 m .00375 .43262 L s 0 .44807 m .00375 .44807 L s 0 .47898 m .00375 .47898 L s 0 .49443 m .00375 .49443 L s 0 .50988 m .00375 .50988 L s 0 .52533 m .00375 .52533 L s 0 .55623 m .00375 .55623 L s 0 .57168 m .00375 .57168 L s 0 .58713 m .00375 .58713 L s 0 .60258 m .00375 .60258 L s .25 Mabswid 0 0 m 0 .61803 L s 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath .008 w .03333 .05983 Mdot .06667 .1157 Mdot .1 .16761 Mdot .13333 .21557 Mdot .16667 .25957 Mdot .2 .29962 Mdot .23333 .33572 Mdot .26667 .36785 Mdot .3 .39604 Mdot .33333 .42026 Mdot .36667 .44053 Mdot .4 .45685 Mdot .43333 .46921 Mdot .46667 .47762 Mdot .5 .48207 Mdot .53333 .48256 Mdot .56667 .4791 Mdot .6 .47168 Mdot .63333 .46031 Mdot .66667 .44498 Mdot .7 .4257 Mdot .73333 .40246 Mdot .76667 .37527 Mdot .8 .34412 Mdot .83333 .30902 Mdot .86667 .26996 Mdot .9 .22694 Mdot .93333 .17997 Mdot .96667 .12905 Mdot 1 .07416 Mdot % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{42, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg03oool3000000@0oooo0P0000040?ooo`8000006P3oool5000000<0oooo0P0000040?oo o`800000703oool3000000@0oooo0P0000040?ooo`8000007@3oool3000000<0oooo0P0000040?oo o`800000703oool3000000@0oooo0P0000040?ooo`800000703oool3000000@0oooo0P0000040?oo o`8000000`3oool003T0oooo00<000000?ooo`3oool00P3oool010000000oooo0?ooo`0000020?oo o`040000003oool0oooo000001X0oooo00@000000?ooo`3oool000000P3oool010000000oooo0?oo o`0000020?ooo`040000003oool0oooo000001X0oooo00D000000?ooo`3oool0oooo000000020?oo o`040000003oool0oooo00000080oooo00@000000?ooo`3oool000007@3oool01@000000oooo0?oo o`3oool000000080oooo00@000000?ooo`3oool000000P3oool00`000000oooo0?ooo`0H0?ooo`05 0000003oool0oooo0?ooo`0000000P3oool010000000oooo0?ooo`0000020?ooo`040000003oool0 oooo000001X0oooo00D000000?ooo`3oool0oooo000000020?ooo`040000003oool0oooo00000080 oooo00@000000?ooo`3oool000000P3oool003T0oooo00<000000?ooo`3oool00P3oool010000000 oooo0?ooo`0000020?ooo`040000003oool0oooo000001/0oooo00<000000?ooo`3oool00P3oool0 10000000oooo0?ooo`0000020?ooo`040000003oool0oooo000001h0oooo00@000000?ooo`3oool0 00000P3oool010000000oooo0?ooo`0000020?ooo`030000003oool0oooo01P0oooo1@0000020?oo o`040000003oool0oooo00000080oooo00@000000?ooo`3oool000007P3oool010000000oooo0?oo o`0000020?ooo`040000003oool0oooo00000080oooo00<000000?ooo`3oool0603oool01@000000 oooo0?ooo`3oool000000080oooo00@000000?ooo`3oool000000P3oool010000000oooo0?ooo`00 00020?ooo`00>@3oool00`000000oooo0?ooo`020?ooo`040000003oool0oooo00000080oooo00@0 00000?ooo`3oool00000703oool01@000000oooo0?ooo`3oool000000080oooo00@000000?ooo`3o ool000000P3oool00`000000oooo0?ooo`0J0?ooo`8000000`3oool010000000oooo0?ooo`000002 0?ooo`040000003oool0oooo000001X0oooo00@000000?ooo`3oool000000`3oool010000000oooo 0?ooo`0000020?ooo`040000003oool0oooo000001h0oooo00@000000?ooo`3oool000000P3oool0 10000000oooo0?ooo`0000020?ooo`030000003oool0oooo01P0oooo100000030?ooo`040000003o ool0oooo00000080oooo00@000000?ooo`3oool000000P3oool003T0oooo00<000000?ooo`3oool0 0P3oool010000000oooo0?ooo`0000020?ooo`040000003oool0oooo000001T0oooo00D000000?oo o`3oool0oooo000000020?ooo`040000003oool0oooo00000080oooo00@000000?ooo`3oool00000 7P3oool010000000oooo0?ooo`0000020?ooo`040000003oool0oooo00000080oooo00<000000?oo o`3oool06@3oool00`000000oooo000000030?ooo`040000003oool0oooo00000080oooo00@00000 0?ooo`3oool000006P3oool4000000<0oooo00@000000?ooo`3oool000000P3oool010000000oooo 0?ooo`00000J0?ooo`030000003oool0oooo00@0oooo00@000000?ooo`3oool000000P3oool01000 0000oooo0?ooo`0000020?ooo`00>03oool2000000@0oooo00@000000?ooo`3oool000000P3oool0 10000000oooo0?ooo`00000I0?ooo`050000003oool0oooo0?ooo`0000000P3oool010000000oooo 0?ooo`0000020?ooo`040000003oool0oooo000001X0oooo00D000000?ooo`3oool0oooo00000002 0?ooo`040000003oool0oooo00000080oooo00@000000?ooo`3oool00000703oool2000000<0oooo 00@000000?ooo`3oool000000P3oool010000000oooo0?ooo`00000J0?ooo`030000003oool0oooo 00@0oooo00@000000?ooo`3oool000000P3oool010000000oooo0?ooo`00000K0?ooo`030000003o ool0oooo00<0oooo00@000000?ooo`3oool000000P3oool010000000oooo0?ooo`0000020?ooo`00 >@3oool00`000000oooo0?ooo`030?ooo`800000103oool2000001/0oooo0`0000040?ooo`800000 103oool2000001`0oooo0`0000040?ooo`800000103oool2000001h0oooo00<000000?ooo`3oool0 0P3oool2000000@0oooo0P00000K0?ooo`D000000`3oool2000000@0oooo0P00000M0?ooo`800000 103oool2000000@0oooo0P0000030?ooo`00o`3ooolQ0?ooo`00o`3ooolQ0?ooo`00o`3ooolQ0?oo o`00o`3ooolQ0?ooo`00o`3ooolQ0?ooo`005@3ooooo000000<000002@3oool001D0oooo00<00000 0?ooo`3oool0:03oool00`000000oooo0?ooo`0W0?ooo`030000003oool0oooo02P0oooo00<00000 0?ooo`3oool0:03oool00`000000oooo0?ooo`0X0?ooo`030000003oool0oooo02P0oooo00<00000 0?ooo`3oool01`3oool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`005@3oool00`000000 oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`800000o`3oool:0?ooo`005@3oool00`000000oooo0?oo o`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0oooo0P00003o0?oo o`X0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0oooo00<000000?ooo`3oool0 o`3oool90?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`800000o`3oool: 0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo0?l0 oooo2@3oool001D0oooo00<000000?ooo`3oool01@3oool200000?l0oooo0P3oool001D0oooo0P00 00060?ooo`800000o`3oool20?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo00060?oo o`D000000P3oool3000000D0oooo00<000000?ooo`3oool0o`3oool90?ooo`001`3oool01P000000 oooo0?ooo`000000oooo000000<0oooo00<000000?ooo`3oool00P3oool00`000000oooo0?ooo`3m 0?ooo`8000002@3oool000P0oooo00<000000?ooo`3oool01@3oool00`000000oooo0?ooo`020?oo o`800000oP3oool2000000T0oooo00090?ooo`030000003oool0oooo00@0oooo00<000000?ooo`3o ool00P3oool00`000000oooo0?ooo`3o0?ooo`T0oooo00060?ooo`060000003oool0oooo0?ooo`00 0000oooo100000050?ooo`030000003oool0oooo0?l0oooo2@3oool000H0oooo00L000000?ooo`3o ool0oooo0000003oool0000000P0oooo00<000000?ooo`3oool0o`3oool90?ooo`001`3oool30000 0080oooo1@0000040?ooo`800000o`3oool:0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0 oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0oooo00<000000?ooo`3oool0o`3o ool90?ooo`005@3oool200000?l0oooo2P3oool001D0oooo00<000000?ooo`3oool0o`3oool90?oo o`005@3oool00`000000oooo0?ooo`0=0?ooo`800000n@3oool001D0oooo00<000000?ooo`3oool0 3@3oool200000?T0oooo000E0?ooo`800000o`3oool:0?ooo`005@3oool00`000000oooo0?ooo`3d 0?ooo`8000004P3oool001D0oooo00<000000?ooo`3oool0m03oool200000180oooo000E0?ooo`03 0000003oool0oooo0?l0oooo2@3oool001D0oooo0P00003o0?ooo`X0oooo000E0?ooo`030000003o ool0oooo0?l0oooo2@3oool000L0oooo0`0000040?ooo`8000001@3oool00`000000oooo0?ooo`3o 0?ooo`T0oooo00060?ooo`050000003oool0oooo0?ooo`0000000P3oool010000000oooo0?ooo`00 00040?ooo`030000003oool0oooo0?l0oooo2@3oool000X0oooo00@000000?ooo`3oool000000P3o ool00`000000oooo0?ooo`020?ooo`800000o`3oool:0?ooo`002P3oool010000000oooo0?ooo`00 00020?ooo`030000003oool0oooo0080oooo00<000000?ooo`3oool0o`3oool90?ooo`001P3oool4 000000<0oooo00@000000?ooo`3oool00000103oool00`000000oooo0?ooo`3o0?ooo`T0oooo0006 0?ooo`030000003oool0oooo00@0oooo00@000000?ooo`3oool00000103oool00`000000oooo0?oo o`0F0?ooo`800000l03oool000H0oooo1@0000030?ooo`8000001@3oool2000001L0oooo0P00003` 0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo0>`0 oooo0P00000J0?ooo`005@3oool00`000000oooo0?ooo`3/0?ooo`8000006P3oool001D0oooo0P00 003o0?ooo`X0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0oooo00<000000?oo o`3oool0o`3oool90?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`800000 o`3oool:0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0 oooo0?l0oooo2@3oool001D0oooo00<000000?ooo`3oool07P3oool200000>P0oooo000E0?ooo`80 00007`3oool200000>P0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool000P0oooo00<0 00000?ooo`3oool00P3oool3000000D0oooo00<000000?ooo`3oool0h`3oool2000002<0oooo0008 0?ooo`050000003oool0oooo0?ooo`0000000`3oool00`000000oooo0?ooo`020?ooo`030000003o ool0oooo0><0oooo0P00000S0?ooo`002@3oool00`000000oooo0?ooo`040?ooo`030000003oool0 oooo0080oooo0P00003o0?ooo`X0oooo00090?ooo`030000003oool0oooo00@0oooo00<000000?oo o`3oool00P3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000:0?ooo`030000003oool0000000<0 00001@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo00060?ooo`070000003oool0oooo0?ooo`00 0000oooo000000080?ooo`030000003oool0oooo0?l0oooo2@3oool000H0oooo1@0000000`3oool0 000000000003000000@0oooo0P00003o0?ooo`X0oooo000E0?ooo`030000003oool0oooo0?l0oooo 2@3oool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`005@3oool00`000000oooo0?ooo`0W 0?ooo`800000g`3oool001D0oooo0P00000X0?ooo`800000g`3oool001D0oooo00<000000?ooo`3o ool0f`3oool2000002/0oooo000E0?ooo`030000003oool0oooo0=/0oooo0P00000[0?ooo`005@3o ool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`800000o`3oool:0?ooo`005@3oool00`00 0000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0oooo 00<000000?ooo`3oool0o`3oool90?ooo`005@3oool200000?l0oooo2P3oool000040?ooo`000000 0000000000@0oooo0P0000040?ooo`8000001@3oool00`000000oooo0?ooo`0`0?ooo`800000eP3o ool00080oooo00<000000?ooo`3oool00P3oool010000000oooo0?ooo`0000020?ooo`040000003o ool0oooo000000@0oooo00<000000?ooo`3oool0<03oool200000=H0oooo00020?ooo`030000003o ool0oooo0080oooo00@000000?ooo`3oool000000P3oool010000000oooo0?ooo`0000040?ooo`03 0000003oool0oooo0=80oooo0P00000d0?ooo`000P3oool00`000000oooo0?ooo`020?ooo`040000 003oool0oooo00000080oooo00@000000?ooo`3oool00000103oool200000=<0oooo0P00000d0?oo o`000P3oool00`000000oooo0?ooo`020?ooo`040000003oool0oooo00000080oooo00@000000?oo o`3oool00000103oool00`000000oooo0?ooo`3o0?ooo`T0oooo00000`3oool00000000000040?oo o`040000003oool0oooo00000080oooo00@000000?ooo`3oool00000103oool00`000000oooo0?oo o`3o0?ooo`T0oooo00020?ooo`030000003oool0oooo00<0oooo0P0000040?ooo`8000001@3oool0 0`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`800000o`3oool:0?ooo`005@3oool00`000000 oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo03P0oooo0P00003>0?ooo`005@3o ool00`000000oooo0?ooo`0h0?ooo`800000cP3oool001D0oooo0P00003;0?ooo`800000?03oool0 01D0oooo00<000000?ooo`3oool0bP3oool2000003`0oooo000E0?ooo`030000003oool0oooo0?l0 oooo2@3oool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`005@3oool200000?l0oooo2P3o ool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`005@3oool00`000000oooo0?ooo`110?oo o`800000a@3oool001D0oooo00<000000?ooo`3oool0@@3oool200000P3oool2000006L0oooo00020?ooo`03 0000003oool0oooo00D0oooo00@000000?ooo`3oool000000P3oool00`000000oooo0?ooo`020?oo o`030000003oool0oooo09l0oooo0P00001W0?ooo`000P3oool00`000000oooo0?ooo`050?ooo`04 0000003oool0oooo00000080oooo00<000000?ooo`3oool00P3oool200000?l0oooo2P3oool00080 oooo00@000000?ooo`3oool0oooo100000030?ooo`040000003oool0oooo000000@0oooo00<00000 0?ooo`3oool0J`3oool2000002T0oooo0P00001`0?ooo`0000<0oooo0000000000000`3oool00`00 0000oooo0?ooo`040?ooo`040000003oool0oooo000000@0oooo00<000000?ooo`3oool0J`3oool2 000002T0oooo0P00001`0?ooo`000P3oool010000000oooo0?ooo`3oool5000000<0oooo0P000005 0?ooo`030000003oool0oooo07@0oooo0P00000H0?ooo`800000N03oool001D0oooo0P00001e0?oo o`8000001`3oool2000000H0oooo0P0000070?ooo`800000N03oool001D0oooo00<000000?ooo`3o ool0O@3oool2000000H0oooo0P0000210?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo 000E0?ooo`800000o`3oool:0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?oo o`030000003oool0oooo0?l0oooo2@3oool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`00 5@3oool200000?l0oooo2P3oool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`005@3oool0 0`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0 oooo0P00003o0?ooo`X0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool000040?ooo`00 00000000000000@0oooo00<000000?ooo`3oool00P3oool3000000D0oooo00<000000?ooo`3oool0 o`3oool90?ooo`000P3oool00`000000oooo0?ooo`030?ooo`050000003oool0oooo0?ooo`000000 0`3oool00`000000oooo0?ooo`020?ooo`030000003oool0oooo0?l0oooo2@3oool00080oooo00<0 00000?ooo`3oool0103oool00`000000oooo0?ooo`040?ooo`030000003oool0oooo0080oooo0P00 003o0?ooo`X0oooo00020?ooo`030000003oool0oooo00@0oooo00<000000?ooo`3oool0103oool0 0`000000oooo0?ooo`020?ooo`030000003oool0oooo0?l0oooo2@3oool00080oooo00<000000?oo o`3oool01@3oool00`000000oooo00000003000000D0oooo00<000000?ooo`3oool0o`3oool90?oo o`0000<0oooo0000000000000`3oool01`000000oooo0?ooo`3oool000000?ooo`000000203oool0 0`000000oooo0?ooo`3o0?ooo`T0oooo00020?ooo`040000003oool0oooo0?ooo`D0000000<0oooo 0000000000000`0000040?ooo`800000o`3oool:0?ooo`005@3oool00`000000oooo0?ooo`3o0?oo o`T0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3oool001D0oooo00<000000?ooo`3oool0 o`3oool90?ooo`005@3oool200000?l0oooo2P3oool001D0oooo00<000000?ooo`3oool0o`3oool9 0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo000E0?ooo`030000003oool0oooo0?l0 oooo2@3oool001D0oooo0P00003o0?ooo`X0oooo000E0?ooo`030000003oool0oooo0?l0oooo2@3o ool001D0oooo00<000000?ooo`3oool0o`3oool90?ooo`005@3oool00`000000oooo0?ooo`3o0?oo o`T0oooo000E0?ooo`800000o`3oool:0?ooo`005@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo 0005000000<0oooo0P0000040?ooo`8000001@3oool00`000000oooo0?ooo`3o0?ooo`T0oooo0000 1@3oool000000?ooo`3oool000000080oooo00@000000?ooo`3oool000000P3oool010000000oooo 0?ooo`0000040?ooo`030000003oool0oooo0?l0oooo2@3oool00080oooo00<000000?ooo`3oool0 0P3oool010000000oooo0?ooo`0000020?ooo`040000003oool0oooo000000@0oooo0P00003o0?oo o`X0oooo00030?ooo`050000003oool0oooo0?ooo`0000000P3oool010000000oooo0?ooo`000002 0?ooo`030000003oool0oooo0?l0oooo3P3oool000050000003oool0oooo0?ooo`0000000P3oool0 10000000oooo0?ooo`0000020?ooo`040000003oool0oooo00000?l0oooo403oool000050000003o ool0oooo0?ooo`0000000P3oool010000000oooo0?ooo`0000020?ooo`040000003oool0oooo0000 0?l0oooo403oool000040?ooo`0000000000000000@0oooo0P0000040?ooo`800000o`3ooolA0?oo o`00o`3ooolQ0?ooo`00\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {-49.5611, -16.3481, 2.33656, \ 1.26021}}] }, Open ]], Cell[BoxData[ \(<< Graphics`Shapes`\)], "Input"], Cell[BoxData[{ \(\(refresh\ = 10;\)\), "\[IndentingNewLine]", \(startTime\ = \ 0; maxTime\ = \ 5; \ dt\ = \ 1/30;\), "\[IndentingNewLine]", \( (*\ position, \ velocity, \ mass\ *) \(object = {{0, 0, 0}, {10, 0, 50}, 2};\)\)}], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(For[t = startTime; p = object[\([1]\)]; v = object[\([2]\)]; m = object[\([3]\)]; ds = refresh; \[IndentingNewLine]slist = {}, t < maxTime, t = t + dt, \[IndentingNewLine]f = gravity + wind[t, p]; \[IndentingNewLine]a = f/m; \[IndentingNewLine]v = v + a*dt; \[IndentingNewLine]p = p + v*dt; \[IndentingNewLine]object\ = \ {p, v, m}; \[IndentingNewLine]If[ds \[Equal] 0, ds = refresh; slist = Append[slist, TranslateShape[Graphics3D[Point[1, 10, 10]], p]], ds = ds - 1]]\)], "Input"], Cell[BoxData[ \($Aborted\)], "Output"] }, Open ]] }, FrontEndVersion->"4.0 for Macintosh", ScreenRectangle->{{0, 1024}, {0, 748}}, WindowSize->{586, 629}, WindowMargins->{{6, Automatic}, {Automatic, 25}}, PrintingCopies->1, PrintingPageRange->{1, Automatic}, MacintoshSystemPageSetup->"\<\ 02P0005X0FP000003X<;V_oCom" ] (*********************************************************************** 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[1717, 49, 174, 3, 43, "Input"], Cell[1894, 54, 26, 0, 27, "Input"], Cell[CellGroupData[{ Cell[1945, 58, 326, 6, 107, "Input"], Cell[2274, 66, 35, 1, 26, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[2346, 72, 1095, 18, 363, "Input"], Cell[3444, 92, 470, 10, 38, "Print"], Cell[3917, 104, 607, 12, 38, "Print"], Cell[4527, 118, 552, 13, 38, "Print"], Cell[5082, 133, 712, 16, 38, "Print"], Cell[5797, 151, 496, 11, 38, "Print"], Cell[6296, 164, 680, 15, 38, "Print"], Cell[6979, 181, 496, 11, 38, "Print"], Cell[7478, 194, 680, 15, 38, "Print"], Cell[8161, 211, 494, 11, 38, "Print"], Cell[8658, 224, 702, 16, 38, "Print"] }, Open ]], Cell[CellGroupData[{ Cell[9397, 245, 119, 2, 27, "Input"], Cell[9519, 249, 18669, 514, 186, 4317, 332, "GraphicsData", "PostScript", \ "Graphics"] }, Open ]], Cell[28203, 766, 52, 1, 27, "Input"], Cell[28258, 769, 265, 5, 75, "Input"], Cell[CellGroupData[{ Cell[28548, 778, 593, 11, 203, "Input"], Cell[29144, 791, 42, 1, 26, "Output"] }, Open ]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)