(* Content-type: application/mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 6.0' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 145, 7] NotebookDataLength[ 8114, 243] NotebookOptionsPosition[ 7603, 221] NotebookOutlinePosition[ 8022, 238] CellTagsIndexPosition[ 7979, 235] WindowFrame->Normal ContainsDynamic->True *) (* Beginning of Notebook Content *) Notebook[{ Cell[CellGroupData[{ Cell["Cross Product", "Section"], Cell["\<\ The red vector is < 3, 0, 0> and the blue vector is < 3Cos[t], 3Sin[t], 0>. \ The black vector is the red vector cross the blue vector. --mdb\ \>", "Text", FontSize->18], Cell[CellGroupData[{ Cell[BoxData[{ RowBox[{ RowBox[{"v1", "=", " ", RowBox[{"{", RowBox[{"3", ",", "0", ",", "0"}], "}"}]}], " ", ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"v2", " ", "=", " ", RowBox[{"Table", "[", RowBox[{ RowBox[{"N", "[", RowBox[{"{", RowBox[{ RowBox[{"3", RowBox[{"Cos", "[", "t", "]"}]}], ",", RowBox[{"3", RowBox[{"Sin", "[", "t", "]"}]}], ",", "0"}], "}"}], "]"}], ",", RowBox[{"{", RowBox[{"t", ",", "0", ",", RowBox[{"2", "Pi"}], ",", RowBox[{"Pi", "/", "16"}]}], "}"}]}], "]"}]}], " ", ";"}], "\n", RowBox[{ RowBox[{ RowBox[{"v3", " ", "=", " ", RowBox[{"Table", "[", RowBox[{ RowBox[{"Cross", "[", RowBox[{"v1", ",", RowBox[{"v2", "[", RowBox[{"[", "j", "]"}], "]"}]}], "]"}], ",", RowBox[{"{", RowBox[{"j", ",", "1", ",", "33"}], "}"}]}], "]"}]}], ";"}], "\[IndentingNewLine]"}], "\n", RowBox[{ RowBox[{"P1", " ", "=", " ", RowBox[{"Graphics3D", "[", RowBox[{"{", RowBox[{ RowBox[{"Thickness", "[", ".01", "]"}], ",", RowBox[{"Hue", "[", "0", "]"}], ",", RowBox[{"Line", "[", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0", ",", "0"}], "}"}], ",", "v1"}], "}"}], "]"}]}], "}"}], "]"}]}], ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"PT", " ", "=", " ", RowBox[{"Table", "[", " ", RowBox[{ RowBox[{"Graphics3D", "[", RowBox[{"{", RowBox[{ RowBox[{"Thickness", "[", ".01", "]"}], ",", RowBox[{"Hue", "[", "0.7", "]"}], ",", RowBox[{"Line", "[", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"v2", "[", RowBox[{"[", "j", "]"}], "]"}]}], "}"}], "]"}]}], "}"}], "]"}], ",", RowBox[{"{", RowBox[{"j", ",", "1", ",", "33"}], "}"}]}], "]"}]}], " ", ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"PC", " ", "=", " ", RowBox[{"Table", "[", " ", RowBox[{ RowBox[{"Graphics3D", "[", RowBox[{"{", RowBox[{ RowBox[{"Thickness", "[", ".01", "]"}], ",", RowBox[{"Line", "[", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"v3", "[", RowBox[{"[", "j", "]"}], "]"}]}], "}"}], "]"}]}], "}"}], "]"}], ",", RowBox[{"{", RowBox[{"j", ",", "1", ",", "33"}], "}"}]}], "]"}]}], ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{ RowBox[{"PP", " ", "=", " ", RowBox[{"Table", "[", RowBox[{ RowBox[{"Graphics3D", "[", RowBox[{"Polygon", "[", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0", ",", "0"}], "}"}], ",", "v1", ",", RowBox[{"v1", "+", RowBox[{"v2", "[", RowBox[{"[", "j", "]"}], "]"}]}], ",", RowBox[{"v2", "[", RowBox[{"[", "j", "]"}], "]"}]}], "}"}], "]"}], "]"}], ",", RowBox[{"{", RowBox[{"j", ",", "1", ",", "33"}], "}"}]}], " ", "]"}]}], ";"}], "\n"}], "\[IndentingNewLine]", RowBox[{"Animate", "[", RowBox[{ RowBox[{"Show", "[", RowBox[{ RowBox[{"PP", "[", RowBox[{"[", "j", "]"}], "]"}], ",", "P1", ",", RowBox[{"PT", "[", RowBox[{"[", "j", "]"}], "]"}], ",", RowBox[{"PC", "[", RowBox[{"[", "j", "]"}], "]"}], ",", RowBox[{"PlotRange", "\[Rule]", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{"-", "6"}], ",", "6"}], "}"}], ",", RowBox[{"{", RowBox[{ RowBox[{"-", "6"}], ",", "6"}], "}"}], ",", RowBox[{"{", RowBox[{ RowBox[{"-", "10"}], ",", "10"}], "}"}]}], "}"}]}], ",", RowBox[{"ViewPoint", "\[Rule]", RowBox[{"{", RowBox[{"3", ",", "3", ",", "3"}], "}"}]}], ",", RowBox[{"Boxed", "\[Rule]", "False"}], ",", RowBox[{"Axes", "\[Rule]", "True"}], ",", RowBox[{"AxesLabel", "\[Rule]", RowBox[{"{", RowBox[{"x", ",", "y", ",", "z"}], "}"}]}], ",", RowBox[{"AspectRatio", "\[Rule]", "Automatic"}]}], "]"}], ",", RowBox[{"{", RowBox[{"j", ",", "1", ",", "32", ",", "1"}], "}"}]}], "]"}]}], "Input", CellChangeTimes->{{3.43361049906355*^9, 3.433610516161521*^9}}], Cell[BoxData[ TagBox[ StyleBox[ DynamicModuleBox[{$CellContext`j$$ = 6, Typeset`show$$ = True, Typeset`bookmarkList$$ = {}, Typeset`bookmarkMode$$ = "Menu", Typeset`animator$$, Typeset`animvar$$ = 1, Typeset`name$$ = "\"untitled\"", Typeset`specs$$ = {{ Hold[$CellContext`j$$], 1, 32, 1}}, Typeset`size$$ = { 309., {214., 218.}}, Typeset`update$$ = 0, Typeset`initDone$$, Typeset`skipInitDone$$ = True, $CellContext`j$413$$ = 0}, DynamicBox[Manipulate`ManipulateBoxes[ 1, StandardForm, "Variables" :> {$CellContext`j$$ = 1}, "ControllerVariables" :> { Hold[$CellContext`j$$, $CellContext`j$413$$, 0]}, "OtherVariables" :> { Typeset`show$$, Typeset`bookmarkList$$, Typeset`bookmarkMode$$, Typeset`animator$$, Typeset`animvar$$, Typeset`name$$, Typeset`specs$$, Typeset`size$$, Typeset`update$$, Typeset`initDone$$, Typeset`skipInitDone$$}, "Body" :> Show[ Part[$CellContext`PP, $CellContext`j$$], $CellContext`P1, Part[$CellContext`PT, $CellContext`j$$], Part[$CellContext`PC, $CellContext`j$$], PlotRange -> {{-6, 6}, {-6, 6}, {-10, 10}}, ViewPoint -> {3, 3, 3}, Boxed -> False, Axes -> True, AxesLabel -> {$CellContext`x, $CellContext`y, $CellContext`z}, AspectRatio -> Automatic], "Specifications" :> {{$CellContext`j$$, 1, 32, 1, AppearanceElements -> { "ProgressSlider", "PlayPauseButton", "FasterSlowerButtons", "DirectionButton"}}}, "Options" :> { ControlType -> Animator, AppearanceElements -> None, SynchronousUpdating -> True, ShrinkingDelay -> 10.}, "DefaultOptions" :> {}], ImageSizeCache->{351., {250.375, 255.625}}, SingleEvaluation->True], Deinitialization:>None, DynamicModuleValues:>{}, SynchronousInitialization->True, UnsavedVariables:>{Typeset`initDone$$}, UntrackedVariables:>{Typeset`size$$}], "Manipulate", Deployed->True, StripOnInput->False], Manipulate`InterpretManipulate[1]]], "Output", CellChangeTimes->{{3.433610404813603*^9, 3.4336104146701527`*^9}, 3.433610479663368*^9, 3.433610519175393*^9, 3.433610572375978*^9}] }, Open ]] }, Open ]] }, WindowSize->{731, 735}, WindowMargins->{{74, Automatic}, {Automatic, 0}}, DockedCells->FEPrivate`FrontEndResource[ "FEExpressions", "CompatibilityToolbar"], FrontEndVersion->"6.0 for Mac OS X x86 (32-bit) (June 19, 2007)", StyleDefinitions->"Default.nb" ] (* End of Notebook Content *) (* Internal cache information *) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[590, 23, 32, 0, 67, "Section"], Cell[625, 25, 183, 4, 53, "Text"], Cell[CellGroupData[{ Cell[833, 33, 4517, 137, 208, "Input"], Cell[5353, 172, 2222, 45, 524, "Output"] }, Open ]] }, Open ]] } ] *) (* End of internal cache information *)