(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 4.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[ 32977, 1003]*) (*NotebookOutlinePosition[ 33688, 1028]*) (* CellTagsIndexPosition[ 33644, 1024]*) (*WindowFrame->Normal*) Notebook[{ Cell[BoxData[ \(\(\( (*\ \(:\)\(Title : Arrow\ 3 D\)*) \)\( (*\ \(:\)\(Context : Graphics`Arrow3D`\)*) \)\( (*\ \(:\)\(Author : John\ M . Novak\)*) \)\( (*\ \(:\)\(Summary : crude\ 3 D\ arrow\ primitive\)*) \)\( (*\ \(\(:\)\(Copyright : Copyright\ 1996\ Wolfram\ Research\)\), \(\(Inc\)\(.\)\)*) \)\( (*\ \ \(:\)\(Package\ \(Version : 1.0\)\)*) \)\( (*\ \(:\)\(Mathematica\ \(Version : 3.0\)\)*) \)\( (*\ \(:\)\(History : V1 \( .0--\)\ March\ 1996\ by\ John\ M . Novak\)*) \)\( (*\ \(\(:\)\(Keywords : arrow\)\), Graphics3D*) \)\( (*\ \(\(:\)\(Sources : Tom\ Wickham - Jones\)\), "\"*) \)\( (*\ \ \(\(:\)\(Discussion : This\ is\ a\ package\ to\ add\ crude\ 3 D\ arrows\ by\ using\ 3 D\ graphics\ primitives . The\ main\ problem\ with\ this\ approach\ is\ that\ arrows\ \ don' t\ have\ an\ optimal\ appearance\)\), and\ distinction\ between\ \((e . g . )\)\ arrows\ point\ toward\ vs . away\ from\ the\ user\ is\ difficult\ to\ make . On\ the\ other\ hand, it\ is\ readily\ implementable, which\ is\ far\ superior\ to\ any\ other\ approach\ available\ at\ this\ \ time . \((The\ PostScript\ used\ in\ 2 D\ arrows\ won' t\ layer\ correctly\ in\ 3 D, nor\ would\ 2 D\ primitives; placing\ 3 D\ planar\ primitives\ with\ the\ correct\ orientation\ has\ \ problems\ with\ perspective\ transforms\ as\ well\ as\ design\ problems\ with\ \ things\ like\ arrows\ with\ a\ small\ angle\ w . r . t . the\ \(\(user\)\(.\)\))\)\ Because\ of\ the\ essentially\ \ different\ approach\ from\ 2 D\ arrows, the\ package\ is\ being\ made\ independent\ of\ the\ 2 D\ package\ for\ the\ time\ \(\(being\)\(.\)\)*) \ \)\(BeginPackage["\"]\[IndentingNewLine]\n \(Arrow3D::usage = "\";\)\n\[IndentingNewLine] Begin["\<`Private`\>"]\[IndentingNewLine]\[IndentingNewLine] (*The\ \ following\ routine\ is\ based\ on\ OrthogonalVectors\ from\ Tom\ Wickham - Jones'\ Mathematica\ Graphics\ \(\(book\)\(.\)\)*) \n\ \[IndentingNewLine] anOrthogonalVector[norm : {_, _, _}] := Block[{pos, a, b, v1}, pos = If[VectorQ[norm, NumberQ], Abs[N[norm]], norm]; \[IndentingNewLine]pos = Sort[Transpose[{pos, Range[3]}]]; \[IndentingNewLine]{pos, a, b} = Map[Last, pos]; \[IndentingNewLine]v1 = ReplacePart[{0, 0, 0}, \(-Part[norm, a]\), b]; \[IndentingNewLine]ReplacePart[v1, Part[norm, b], a]]\n\[IndentingNewLine] normalize[vec_] := vec/Sqrt[vec . vec]\[IndentingNewLine]\[IndentingNewLine] (*The\ following\ \ routine' rotationmatrix'\ was\ borrowed\ from\ the\ standard\ package\ \ \(\(Graphics`SurfaceOfRevolution`\)\(.\)\)*) \n\[IndentingNewLine] rotationmatrix[axis_, theta_] := Module[{n1, n2, n3}, {n1, n2, n3} = normalize[axis] // N; \[IndentingNewLine]{{n1^2 + \((1 - n1^2)\)\ Cos[theta], n1\ n2\ \((1 - Cos[theta])\) + n3\ Sin[theta], n1\ n3\ \((1 - Cos[theta])\) - n2\ Sin[theta]}, {n1\ n2\ \((1 - Cos[theta])\) - n3\ Sin[theta], n2^2 + \((1 - n2^2)\)\ Cos[theta], n2\ n3\ \((1 - Cos[theta])\) + n1\ Sin[theta]}, {n1\ n3\ \((1 - Cos[theta])\) + n2\ Sin[theta], n2\ n3\ \((1 - Cos[theta])\) - n1\ Sin[theta], n3^2 + \((1 - n3^2)\)\ Cos[theta]}} // N]\n\[IndentingNewLine] Arrow3D[base : {_, _, _}, tip : {_, _, _}, polys_: 10, len_: 0.8] := {Line[{base, tip}], mycone[tip - base, base, tip, polys, len]}\n\[IndentingNewLine] Arrow3D[base : {_, _, _}, tip : {_, _, _}, ___] := Point[base] /; base \[Equal] tip\n\[IndentingNewLine] mycone[vec_, base_, tip_, polys_, len_] := Block[{norm = anOrthogonalVector[vec], theta}, Map[Polygon[Append[#, tip]] &, Partition[ Table[base + len\ vec + \((1 - len)\)/2\ norm . rotationmatrix[vec, theta], {theta, 0, 2\ Pi, 2\ Pi/polys}] // N, 2, 1]]]\n\[IndentingNewLine] End[]\n\[IndentingNewLine] EndPackage[]\n\[IndentingNewLine]\n \("\";\)\n \("\";\)\n \("\";\)\n \("\";\)\[IndentingNewLine] \)\)\)], "Input", Editable->True, CellOpen->False, InitializationCell->True], Cell[TextData[{ Cell[BoxData[{ StyleBox[\(MATH\ 257\ Calculus\ III\t\t\t\t\tWeek\ of\ May\ 5, \ 2003\), FontSize->14], "\n", StyleBox[\(Lab\ 6 : \ Wectors\), "Title"], "\n", StyleBox[\(Name\ 1\), "Section"], "\n", StyleBox[\(Name\ 2\), "Section"], "\n", StyleBox[\(\(Section\)\(:\)\), "Section"]}], "Input"], "\n" }], "Text", FontColor->GrayLevel[1], Background->RGBColor[0, 0, 1]], Cell[TextData[{ StyleBox["Before you begin", FontWeight->"Bold"], ", execute the following command. YOU WILL BE ASKED if you want to execute \ any initialization cells. CLICK YES." }], "Text", FontSize->16], Cell[BoxData[ RowBox[{ StyleBox[\(<< Graphics`Arrow`;\), "Input"], "\[IndentingNewLine]"}]], "Input"], Cell[TextData[{ "I. Laboratory Objectives\n\tUse ", StyleBox["Mathematica", FontSlant->"Italic"], " to explore\n\t\t3D graphics and Vectors. Yeah!" }], "Text"], Cell[TextData[StyleBox["II. Formatting and Syntax Information", "Text"]], \ "Text"], Cell[TextData[{ "\t", StyleBox["Show[Graphics[ ]", "Input"], " \tThese make ", StyleBox["Mathematica", FontSlant->"Italic"], " render whatever\n\t", StyleBox["Show[Graphics3D[ ]]\t", "Input"], "\t2D or 3D graphics you've conconcted (which\n\t\t\t\t\tyou have to put in \ the brackets [ ]).\n\t", StyleBox["Arrow[{x1,y1}, {x2,y2}]", "Input"], "\tDraws an Arrow from {x1,y1} to {x2,y2}.\n\t \t\t\t\t\tYou need to do \ ", StyleBox["<"Italic"], " command.\n\t\t\t\t\tBut the secret initialization cells in this lab will \ define it...\n\t\t\t\t\t\n\t", StyleBox["v.u", "Input"], "\t\t\t\tThe ", StyleBox["Dot Product", FontWeight->"Bold"], " of two vectors ", StyleBox["v", "Input"], " and ", StyleBox["u", "Input"], ". \n\t\t\t\t\tDon't know what this is? You'll see below...\n\t\t\t\t\t\n\ " }], "Text", FontFamily->"Helvetica", FontSize->14], Cell[TextData[StyleBox["Vectors (or Wectors) in 2D", FontWeight->"Bold", FontColor->RGBColor[0, 0, 1]]], "Subtitle"], Cell[CellGroupData[{ Cell[TextData[{ StyleBox["In class (and in the book), we denote a vector like this: v = \ <1, 3>. In ", "Text", FontFamily->"Times", FontSize->14, FontWeight->"Plain"], StyleBox["Mathematica", "Text", FontFamily->"Times", FontSize->14, FontWeight->"Plain", FontSlant->"Italic"], StyleBox[", we express vectors as LISTS:", "Text", FontFamily->"Times", FontSize->14, FontWeight->"Plain"] }], "Section"], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(v = {1, 3}\)\)\)], "Input"], Cell[TextData[{ "If we wanted to draw this vector centered at the origin, we can use the \ \"Arrow\" command. (If this does NOT work, you didn't do the ", StyleBox["<14], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(Show[ Graphics[{Thickness[ .01], Arrow[{0, 0}, v]}]]\)\)\)], "Input"], Cell["\<\ OK. That doesn't picture doesn't say much. Try it again, this \ time adding axes, and making them scaled the same: \ \>", "Text", FontSize->14], Cell[BoxData[ \(Show[Graphics[{Thickness[ .01], Arrow[{0, 0}, v]}], \ Axes \[Rule] True, \ AspectRatio \[Rule] Automatic]\)], "Input"], Cell[TextData[{ "Therefore, the ", StyleBox["Arrow[{x1, y1}, {x2, y2}]", "Input"], " command will draw an arrow ", StyleBox["starting", FontWeight->"Bold"], " at (x1,y1) and ", StyleBox["ending", FontWeight->"Bold"], " at (x2,y2)." }], "Text", FontSize->14], Cell[TextData[{ "\n", StyleBox["Question 1:", FontWeight->"Bold", FontColor->RGBColor[1, 0, 0]], StyleBox[" Make a picture of 5 vectors that form a nice pentagon. (It \ doesn't have to be perfectly regular, but try your best.)", FontColor->RGBColor[1, 0, 0]] }], "Text", FontSize->14], Cell[BoxData[ \(\[IndentingNewLine]\)], "Input"] }, Open ]], Cell[TextData[StyleBox[" Vectors in 3D", FontWeight->"Bold", FontColor->RGBColor[0, 0, 1]]], "Subtitle"], Cell[TextData[{ "\nTo make vectors in 3D space, we need to use the ", StyleBox["Arrow3D[ ]", "Input"], " command. This is NOT a standard ", StyleBox["Mathematica", FontSlant->"Italic"], " command; it was loaded when you clicked \"yes\" to the initialization \ cells. Clever, eh?\n\nLet's define a 3D vector and draw it centered at the \ origin." }], "Text", FontSize->14], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(a = {1, 3, 3}\[IndentingNewLine] Show[Graphics3D[{Thickness[ .01], Arrow3D[{0, 0, 0}, a]}], \ Axes \[Rule] True, \ AspectRatio \[Rule] Automatic, \ PlotRange \[Rule] {{0, 3}, {0, 3}, {0, 3}}]\)\)\)], "Input"], Cell["\<\ Cute, eh? \ \>", "Text", FontSize->14], Cell[TextData[{ StyleBox["Question 2a:", FontWeight->"Bold"], " Make a picture of a bunch of vectors that form a perfect ", StyleBox["cube", FontWeight->"Bold"], ". This is FUN! ", StyleBox["Both", FontWeight->"Bold"], " people in your group should do this to get the experience. (Race to see \ who gets it first.) \n", StyleBox["Do it this way:", FontWeight->"Bold"], " let one corner of the cube be at {0,0,0}, and let the opposite corner be \ {1,1,1}. Let ", StyleBox["o={0,0,0}", "Input"], " be the origin, and label your other corners ", StyleBox["c1, c2, ..., c7", "Input"], ". That way you won't have to keep typing them in. Here, I'll get you \ started..." }], "Text", FontSize->14, FontColor->RGBColor[1, 0, 0]], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\(o = {0, 0, 0};\)\(\[IndentingNewLine]\) \(c1\ = \ {1, 0, 0};\)\(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \)\( (*\ you\ do\ the\ rest\ *) \)\)\)\)], "Input"], Cell[TextData[{ StyleBox["Question 2b:", FontWeight->"Bold"], " Now that you've done question 2a, do the below command and ", StyleBox["explain", FontWeight->"Bold"], " what you see in a sentance or two:" }], "Text", FontSize->14, FontColor->RGBColor[1, 0, 0]], Cell[BoxData[ \(\(\(Show[ Graphics3D[{Thickness[ .01], Arrow3D[o, c1], \ Arrow3D[o, c2], Arrow3D[o, c3], \ Arrow3D[o, c4], \ Arrow3D[o, c5], \ Arrow3D[o, c6], \ Arrow3D[o, c7]}], \ Axes \[Rule] True, \ AspectRatio \[Rule] Automatic]\)\(\[IndentingNewLine]\) \)\)], "Input"], Cell[TextData[StyleBox[" Vectors do Work", FontWeight->"Bold", FontColor->RGBColor[0, 0, 1]]], "Subtitle"], Cell[TextData[{ "(READ THIS. You're gonna learn something! (Though you may have seen this \ before in a physics class...))\nOne of the big uses of vectors is to solve \ physics Work problems that are more complicated than the ones you saw last \ quarter. Recall that the Work done when applying a Force over a Distance is:\ \n\t\t\t\tWork = Force * Distance\nThis assumes that the force is acting in \ the ", StyleBox["same direction", FontWeight->"Bold"], " as the distance being travelled. remember that.\n\nSo suppose we have a \ heavy box sitting at the origin in the x-y plane. We tie a rope to it and, \ while standing on the x-axis, pull on the rope with a force of 20 Newtons. \ The situation can be viewed as in the below picture:" }], "Text", FontSize->14], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"\[IndentingNewLine]", "\[IndentingNewLine]", StyleBox[\(Show[ Graphics[{Thickness[ .01], Arrow[{0, 0}, {3, 1}], \[IndentingNewLine]Arrow[{0, 0}, {4, 0}], RGBColor[1, 0, 0], Arrow[{ .01, .05}, {3, .05}], \[IndentingNewLine]Text[ FontForm["\", {"\", 14}], \ {1.5, \(- .15\)}], \ RGBColor[0, 0, 0], \[IndentingNewLine]Text[ FontForm["\", {"\", 14}], {1.5, .75}], \[IndentingNewLine]Text[ FontForm["\", {"\", 14}], {3.25, \(- .25\)}], \[IndentingNewLine]Text[ FontForm["\", {"\", 14}], {1.5, .75}], \[IndentingNewLine]Text[ FontForm["\<\[Theta]\>", {"\", 14}], { .85, .15}], \[IndentingNewLine]Dashing[{ .02, \ .02}], \ Line[{{3, 1}, {3, 0}}]}], \ AspectRatio \[Rule] Automatic]\), "Input"]}]], "Input", CellOpen->False], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .3125 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 0.0238095 0.238095 0.0669643 0.238095 [ [ 0 0 0 0 ] [ 1 .3125 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 .3125 L 0 .3125 L closepath clip newpath % Start of user PostScript /mathtops { gsave MBeginOrig moveto MEndOrig currentpoint grestore } bind def /MAtocoords { mathtops 4 2 roll mathtops 4 copy pop pop 3 -1 roll sub /arry exch def exch sub /arrx exch def arrx dup mul arry dup mul add sqrt /arrl exch def translate } bind def /MAarrowhead1 { gsave MAtocoords arrl 0. eq { 0 0 Mdot } { [ arrx arrl div arry arrl div -1 arry mul arrl div arrx arrl div 0 0 ] concat -0.05 0.0125 moveto 0 0 lineto -0.05 -0.0125 lineto fill -0.05 0.0125 moveto 0 0 lineto -0.05 -0.0125 lineto -0.05 0.0125 lineto stroke } ifelse grestore } def % End of user PostScript 0 g .01 w [ ] 0 setdash .02381 .06696 m .7381 .30506 L s % Start of user PostScript 0 0 3. 1. MAarrowhead1 % End of user PostScript .02381 .06696 m .97619 .06696 L s % Start of user PostScript 0 0 4. 0 MAarrowhead1 % End of user PostScript 1 0 0 r .02619 .07887 m .7381 .07887 L s % Start of user PostScript 0.01 0.05 3. 0.05 MAarrowhead1 % End of user PostScript gsave .38095 .03125 -67.1875 -12 Mabsadd m 1 1 Mabs scale currentpoint translate 0 24 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 1.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 1.000 0.000 0.000 setrgbcolor (P) show 71.375 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 1.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore 0 0 0 r gsave .38095 .24554 -67.1875 -12 Mabsadd m 1 1 Mabs scale currentpoint translate 0 24 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (F) show 71.375 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore gsave .79762 .00744 -67.1875 -12 Mabsadd m 1 1 Mabs scale currentpoint translate 0 24 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (D) show 71.375 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore gsave .38095 .24554 -67.1875 -12 Mabsadd m 1 1 Mabs scale currentpoint translate 0 24 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (F) show 71.375 16.000 moveto %%IncludeResource: font Courier-Bold %%IncludeFont: Courier-Bold /Courier-Bold findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore gsave .22619 .10268 -66.1562 -12 Mabsadd m 1 1 Mabs scale currentpoint translate 0 24 translate 1 -1 scale /g { setgray} bind def /k { setcmykcolor} bind def /p { gsave} bind def /r { setrgbcolor} bind def /w { setlinewidth} bind def /C { curveto} bind def /F { fill} bind def /L { lineto} bind def /rL { rlineto} bind def /P { grestore} bind def /s { stroke} bind def /S { show} bind def /N {currentpoint 3 -1 roll show moveto} bind def /Msf { findfont exch scalefont [1 0 0 -1 0 0 ] makefont setfont} bind def /m { moveto} bind def /Mr { rmoveto} bind def /Mx {currentpoint exch pop moveto} bind def /My {currentpoint pop exch moveto} bind def /X {0 rmoveto} bind def /Y {0 exch rmoveto} bind def /MISOfy { /newfontname exch def /oldfontname exch def oldfontname findfont dup length dict begin {1 index /FID ne {def} {pop pop} ifelse} forall /Encoding MacintoshRomanEncoding def currentdict end newfontname exch definefont pop } def 63.000 16.000 moveto %%IncludeResource: font Times %%IncludeFont: Times %%BeginResource: font Times-MISO %%BeginFont: Times-MISO /Times /Times-MISO MISOfy %%EndFont %%EndResource %%IncludeResource: font Times-MISO %%IncludeFont: Times-MISO /Times-MISO findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 63.000 16.000 moveto %%IncludeResource: font Mathematica1 %%IncludeFont: Mathematica1 /Mathematica1 findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor (q) show 69.312 16.000 moveto %%IncludeResource: font Times-MISO %%IncludeFont: Times-MISO /Times-MISO findfont 14.000 scalefont [1 0 0 -1 0 0 ] makefont setfont 0.000 0.000 0.000 setrgbcolor 0.000 0.000 rmoveto 1.000 setlinewidth grestore [ .02 .02 ] 0 setdash .7381 .30506 m .7381 .06696 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 90}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg@3oool006X0oooo0P3o001d0?ooo`H00000 >P3oool006X0oooo0P3o002d0?ooo`00JP3oool60?l00;00oooo001Z0?ooo`80o`000`3oool20?l0 0:l0oooo001Z0?ooo`80o`000`3oool20?l00:l0oooo001Z0?ooo`80o`000`3oool20?l00:l0oooo 001Y0?ooo`L0o`00/03oool00?l0oooo8@3oool00?l0oooo203oool4000001D0oooo003o0?ooo`P0 oooo2000000A0?ooo`00o`3oool80?ooo`/000003P3oool00<@0oooo103o000o0?ooo`l000002P3o ool000H0oooo_P0000070?l004d00000203oool000H0oooo_P00000;0?l004T00000203oool000T0 oooo1`00002d0?ooo`h0o`00=@3oool>000000/0oooo00070?ooold0o`00<`3oool900000100oooo 00070?ooold0o`00<`3oool4000001D0oooo000B0?ooo`L00000Z`3oool=0?l000030?ooo`000000 000004`0oooo000E0?ooo`L00000Z03oool:0?l000@0oooo0P00001<0?ooo`00603oool7000001l0 oooo00@0ZJVY000000000000V9RHPP3oool60?l000P0oooo0P00001<0?ooo`006`3oool7000001`0 oooo00D08B4Q0:VYZ@3^k^h0EEEE0:VYZ@210?ooo`<0o`002`3oool2000004`0oooo000N0?ooo`L0 00006@3oool01@000000oooo0?ooo`3^k^h08B4Q08l0oooo0P00001<0?ooo`008@3oool7000001H0 oooo00H000000>k^kP3oool0oooo06IVIP2j^[Z>0?ooo`800000C03oool002@0oooo1`00000C0?oo o`06010@402j^[X0oooo0?ooo`2j^[X0IVIVSP3oool2000004`0oooo000W0?ooo`L00000403oool0 0`1EEED000000000000200000003024Q8@3oool0oooo0=X0oooo000Z0?ooo`L000003@3oool01P2Y ZJT0QhN70?ooo`3oool0ZJVY00000=`0oooo000]0?ooo`L000002`3oool01@0b0?ooo`800000C03oool003H0oooo1`00002E 0?ooo`800000C03oool003T0oooo1`00002B0?ooo`800000C03oool003`0oooo1`00002?0?ooo`80 0000C03oool003l0oooo1`00002<0?ooo`800000C03oool00480oooo1`0000290?ooo`800000C03o ool004D0oooo200000250?ooo`800000C03oool004P0oooo200000220?ooo`800000C03oool004`0 oooo1`00003=0?ooo`00C`3oool7000000?ooo`P00000?03oool2000004`0oooo001Y 0?ooo`D00000903oool7000008L0oooo001Z0?ooo`800000:@3oool7000008@0oooo001Z0?ooo`80 0000;03oool700000840oooo001Z0?ooo`80000000<0oooo000000000000;03oool700000300oooo 0P00001<0?ooo`00JP3oool5000002l0oooo1`00000]0?ooo`800000C03oool006X0oooo0P000000 0`3oool000000000000b0?ooo`L00000:P3oool2000004`0oooo001Z0?ooo`800000>03oool70000 02L0oooo0P00001<0?ooo`00JP3oool2000000<0oooo0P00000f0?ooo`L00000903oool2000004`0 oooo001Y0?ooo`P00000>@3oool700000240oooo0P00001<0?ooo`00[@3oool7000001h0oooo0P00 001<0?ooo`00/03oool7000001/0oooo0P00001<0?ooo`00/`3oool7000006H0oooo002f0?ooo`L0 0000H`3oool00;T0oooo1`0000050?ooo`<00000F03oool00;`0oooo1`0000020?ooo`D00000EP3o ool00;l0oooo3@0000060?ooo`800000C03oool00<80oooo300000040?ooo`800000C03oool00<@0 oooo2`0000030?ooo`800000C03oool00<<0oooo3P0000000`3oool000000000001<0?ooo`00``3o oolA000004`0oooo00330?oooa400000C03oool00<`0oooo2000001<0?ooo`00o`3ooolQ0?ooo`00 \ \>"], ImageRangeCache->{{{0, 287}, {89, 0}} -> {-0.116243, -0.281257, 0.0147474, \ 0.0147474}}] }, Open ]], Cell[TextData[{ "In the picture, the force ", StyleBox["F", "Input"], " should be a vector with magnitude 20, or ", StyleBox["|F|=20", "Input"], ". (That's just a fancy way of saying the length of ", StyleBox["F", "Input"], " is 20.) But the work being done will be determined by the ", StyleBox["P", "Input"], " vector, which is ", StyleBox["F", "Input"], " projected down onto the x-axis. Then we'll get\n\t\t\t\t", StyleBox["Work = |P|*|D|", "Input"], "\nBut notice: ", StyleBox["Cos[\[Theta]] = ", "Input"], StyleBox[Cell[BoxData[ \(TraditionalForm\`\(\(|\)\(P\)\(|\)\)\/\(\(|\)\(F\)\(|\)\)\)], "Input", FontSize->18], "Input"], ", so ", StyleBox["|P| = ", "Input"], StyleBox[Cell[BoxData[ FormBox[ RowBox[{ StyleBox["|", FontSize->16], StyleBox["F", FontSize->16], StyleBox["|", FontSize->16], RowBox[{ StyleBox["Cos", FontSize->18], StyleBox["[", FontSize->18], StyleBox["\[Theta]", FontSize->16], StyleBox["]", FontSize->16]}]}], TraditionalForm]], "Input"], "Input"], ". In other words,\n\n\t\t\t\t", StyleBox["Work = ", "Input"], StyleBox[Cell[BoxData[ \(TraditionalForm\`\(\(|\)\(F\)\(|\)\(\(*\)\(\(|\)\(D\)\(|\)\(\(*\)\(\ \ \)\(Cos[\[Theta]]\)\)\)\)\)\)], "Input", FontSize->16], "Input"], "\n\t\t\t\t" }], "Text", FontSize->14], Cell[TextData[{ StyleBox["Question 3a:", FontWeight->"Bold"], " If the angle the rope is making with the ground is 45\[Degree], and we \ drag the box 30 meters, how much work has been done (you still have ", StyleBox["|F| = 20", "Input"], ")? (Use ", StyleBox["Mathematica", FontSlant->"Italic"], " to get an EXACT answer.)\n" }], "Text", FontSize->14, FontColor->RGBColor[1, 0, 0]], Cell[BoxData[ \(\[IndentingNewLine]\)], "Input"], Cell[TextData[{ "\nThere's a better way we can do this: with vectors! It turns out there \ is a vector operation, the ", StyleBox["Dot Product", FontWeight->"Bold"], ", which will compute this \"work quantity\" for us. ", StyleBox["Mathematica", FontSlant->"Italic"], " uses a ", StyleBox["period", FontWeight->"Bold"], " \"", StyleBox[".", "Input"], "\" to denote the dot product, and the official formula for the dot product \ of a vector ", StyleBox["v", "Input"], " with another vector ", StyleBox["u", "Input"], " is:\n\t\t\t", StyleBox["v.u = |v|*|u|*Cos[\[Theta]]", "Input"], "\nwhere \[Theta] is the angle between the vectors. Don't worry about this \ formula right now; ", StyleBox["Mathematica", FontSlant->"Italic"], " will do it for you!" }], "Text", FontSize->14], Cell[TextData[{ StyleBox["Question 3b:", FontWeight->"Bold"], " Use the dot product to re-do Question 3a. That is, define a vector ", StyleBox["F", "Input"], " with magniture 20 that makes a 45\[Degree] angle with the x-axis. Then \ define a vector", StyleBox[" Dvec", "Input"], " along the x-axis with magnitude 30. Then use the dot product to \ calculate the work done.", "\n" }], "Text", FontSize->14, FontColor->RGBColor[1, 0, 0]], Cell[BoxData[ \(\[IndentingNewLine]\)], "Input"], Cell[TextData[{ StyleBox["Question 4:", FontWeight->"Bold"], " Use ", StyleBox["Mathematica", FontSlant->"Italic"], " and the dot product to find the angle between the vectors ", StyleBox["a=<3,4>", "Input"], " and ", StyleBox["b=<5,12>", "Input"], ". (Your answer can be in either radians or degrees.)\n" }], "Text", FontSize->14, FontColor->RGBColor[1, 0, 0]], Cell[BoxData[ \(\[IndentingNewLine]\)], "Input"], Cell[TextData[{ StyleBox["Now that you're done, ", FontSize->18], "\n\t(1) \t", StyleBox["Clean up your work", FontWeight->"Bold"], " by deleting everything that's not needed. \n\t\tThere should only be the \ title, your names, section number, and the questions and your answers\n\t\t\ (with any needed explanations, graphs, etc.).\n\t(2) \tSave this to your \ disk.\n\t(3)\tGo back to Blackboard and upload your final lab report to the \ ", StyleBox["Digital Drop Box", FontWeight->"Bold"], ", located\n\t\tin the ", StyleBox["User Tools", FontWeight->"Bold"], " area. Remember that you have to first ", StyleBox["ADD", FontWeight->"Bold"], " your file to your digital drop box and \n\t\tthen ", StyleBox["SEND it to me!", FontWeight->"Bold"] }], "Text", CellFrame->{{0, 0}, {0, 2}}, FontSize->12] }, FrontEndVersion->"4.2 for Macintosh", ScreenRectangle->{{0, 750}, {0, 578}}, AutoGeneratedPackage->None, WindowToolbars->"EditBar", CellGrouping->Manual, WindowSize->{678, 549}, WindowMargins->{{1, Automatic}, {Automatic, 1}} ] (******************************************************************* 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[1754, 51, 5120, 96, 19, "Input", CellOpen->False, InitializationCell->True], Cell[6877, 149, 472, 16, 154, "Text"], Cell[7352, 167, 218, 6, 54, "Text"], Cell[7573, 175, 119, 3, 43, "Input"], Cell[7695, 180, 171, 5, 68, "Text"], Cell[7869, 187, 84, 1, 32, "Text"], Cell[7956, 190, 1234, 35, 314, "Text"], Cell[9193, 227, 120, 2, 66, "Subtitle"], Cell[CellGroupData[{ Cell[9338, 233, 448, 15, 52, "Section"], Cell[9789, 250, 74, 1, 43, "Input"], Cell[9866, 253, 259, 6, 54, "Text"], Cell[10128, 261, 122, 2, 43, "Input"], Cell[10253, 265, 157, 5, 54, "Text"], Cell[10413, 272, 145, 2, 43, "Input"], Cell[10561, 276, 281, 11, 54, "Text"], Cell[10845, 289, 305, 9, 74, "Text"], Cell[11153, 300, 52, 1, 43, "Input"] }, Open ]], Cell[11220, 304, 108, 2, 66, "Subtitle"], Cell[11331, 308, 388, 10, 114, "Text"], Cell[11722, 320, 273, 4, 75, "Input"], Cell[11998, 326, 52, 4, 54, "Text"], Cell[12053, 332, 772, 22, 114, "Text"], Cell[12828, 356, 206, 3, 59, "Input"], Cell[13037, 361, 280, 9, 54, "Text"], Cell[13320, 372, 316, 6, 75, "Input"], Cell[13639, 380, 110, 2, 66, "Subtitle"], Cell[13752, 384, 783, 14, 174, "Text"], Cell[CellGroupData[{ Cell[14560, 402, 1109, 20, 19, "Input", CellOpen->False], Cell[15672, 424, 12653, 420, 98, 8774, 367, "GraphicsData", "PostScript", \ "Graphics"] }, Open ]], Cell[28340, 847, 1515, 47, 183, "Text"], Cell[29858, 896, 406, 12, 74, "Text"], Cell[30267, 910, 52, 1, 43, "Input"], Cell[30322, 913, 833, 26, 154, "Text"], Cell[31158, 941, 459, 13, 94, "Text"], Cell[31620, 956, 52, 1, 43, "Input"], Cell[31675, 959, 390, 13, 74, "Text"], Cell[32068, 974, 52, 1, 43, "Input"], Cell[32123, 977, 850, 24, 174, "Text"] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)