(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.0' 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[ 68844, 1833]*) (*NotebookOutlinePosition[ 69545, 1857]*) (* CellTagsIndexPosition[ 69501, 1853]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["\<\ Mat 240\tWheeling Jesuit University\t\tDr. Kim Roth Linear Algebra\tComputer Graphics\t\tFebruary 27, 2004\ \>", "Subsubtitle"], Cell[BoxData[ \(\(\(Name \((s)\)\)\(:\)\)\)], "Input"], Cell[CellGroupData[{ Cell["\<\ Code for converting vertices into figures with sides. The first \ colors the sides the second does not.\ \>", "Subsubsection"], Cell[BoxData[ \(colorsides[verts_] := \ Block[{i, j, e, num}, \[IndentingNewLine]\ num\ = \ Length[verts]; \[IndentingNewLine]e = Table[{Hue[ i/num], \[IndentingNewLine]Line[{verts[\([Mod[i, num, 1]]\)], verts\_\(\(\[LeftDoubleBracket]\)\(Mod[i + 1, num, 1]\)\(\ \[RightDoubleBracket]\)\)}]}, \[IndentingNewLine]{i, 1, num}]\[IndentingNewLine]]\)], "Input", InitializationCell->True], Cell[BoxData[ \(sides[verts_] := \ Block[{i, j, e, num}, \[IndentingNewLine]\ num\ = \ Length[verts]; \[IndentingNewLine]e = Table[{\[IndentingNewLine]Line[{verts[\([Mod[i, num, 1]]\)], verts\_\(\(\[LeftDoubleBracket]\)\(Mod[i + 1, num, 1]\)\(\ \[RightDoubleBracket]\)\)}]}, \[IndentingNewLine]{i, 1, num}]\[IndentingNewLine]]\)], "Input"] }, Open ]], Cell[CellGroupData[{ Cell[TextData[{ StyleBox["Now we will display a triangle with vertices (1,1), (2,1), and \ (1,2). The command after the sides give us axes and make sure the picture \ isn't distorted. ", "Subsubsection"], "\n" }], "Subsection"], Cell[CellGroupData[{ Cell[BoxData[ \(Show[ Graphics[colorsides[{{1, 1}, {2, 1}, {1, 2}}], AspectRatio \[Rule] 1, \ Axes \[Rule] True, \ AxesOrigin \[Rule] {0, 0}], PlotRange \[Rule] {{\(-2\), 2}, {\(-2\), 3}}]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: 1 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.5 0.25 0.4 0.2 [ [0 .3875 -6 -9 ] [0 .3875 6 0 ] [.125 .3875 -12 -9 ] [.125 .3875 12 0 ] [.25 .3875 -6 -9 ] [.25 .3875 6 0 ] [.375 .3875 -12 -9 ] [.375 .3875 12 0 ] [.625 .3875 -9 -9 ] [.625 .3875 9 0 ] [.75 .3875 -3 -9 ] [.75 .3875 3 0 ] [.875 .3875 -9 -9 ] [.875 .3875 9 0 ] [1 .3875 -3 -9 ] [1 .3875 3 0 ] [.4875 0 -12 -4.5 ] [.4875 0 0 4.5 ] [.4875 .2 -12 -4.5 ] [.4875 .2 0 4.5 ] [.4875 .6 -6 -4.5 ] [.4875 .6 0 4.5 ] [.4875 .8 -6 -4.5 ] [.4875 .8 0 4.5 ] [.4875 1 -6 -4.5 ] [.4875 1 0 4.5 ] [ 0 0 0 0 ] [ 1 1 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .4 m 0 .40625 L s [(-2)] 0 .3875 0 1 Mshowa .125 .4 m .125 .40625 L s [(-1.5)] .125 .3875 0 1 Mshowa .25 .4 m .25 .40625 L s [(-1)] .25 .3875 0 1 Mshowa .375 .4 m .375 .40625 L s [(-0.5)] .375 .3875 0 1 Mshowa .625 .4 m .625 .40625 L s [(0.5)] .625 .3875 0 1 Mshowa .75 .4 m .75 .40625 L s [(1)] .75 .3875 0 1 Mshowa .875 .4 m .875 .40625 L s [(1.5)] .875 .3875 0 1 Mshowa 1 .4 m 1 .40625 L s [(2)] 1 .3875 0 1 Mshowa .125 Mabswid .025 .4 m .025 .40375 L s .05 .4 m .05 .40375 L s .075 .4 m .075 .40375 L s .1 .4 m .1 .40375 L s .15 .4 m .15 .40375 L s .175 .4 m .175 .40375 L s .2 .4 m .2 .40375 L s .225 .4 m .225 .40375 L s .275 .4 m .275 .40375 L s .3 .4 m .3 .40375 L s .325 .4 m .325 .40375 L s .35 .4 m .35 .40375 L s .4 .4 m .4 .40375 L s .425 .4 m .425 .40375 L s .45 .4 m .45 .40375 L s .475 .4 m .475 .40375 L s .525 .4 m .525 .40375 L s .55 .4 m .55 .40375 L s .575 .4 m .575 .40375 L s .6 .4 m .6 .40375 L s .65 .4 m .65 .40375 L s .675 .4 m .675 .40375 L s .7 .4 m .7 .40375 L s .725 .4 m .725 .40375 L s .775 .4 m .775 .40375 L s .8 .4 m .8 .40375 L s .825 .4 m .825 .40375 L s .85 .4 m .85 .40375 L s .9 .4 m .9 .40375 L s .925 .4 m .925 .40375 L s .95 .4 m .95 .40375 L s .975 .4 m .975 .40375 L s .25 Mabswid 0 .4 m 1 .4 L s .5 0 m .50625 0 L s [(-2)] .4875 0 1 0 Mshowa .5 .2 m .50625 .2 L s [(-1)] .4875 .2 1 0 Mshowa .5 .6 m .50625 .6 L s [(1)] .4875 .6 1 0 Mshowa .5 .8 m .50625 .8 L s [(2)] .4875 .8 1 0 Mshowa .5 1 m .50625 1 L s [(3)] .4875 1 1 0 Mshowa .125 Mabswid .5 .04 m .50375 .04 L s .5 .08 m .50375 .08 L s .5 .12 m .50375 .12 L s .5 .16 m .50375 .16 L s .5 .24 m .50375 .24 L s .5 .28 m .50375 .28 L s .5 .32 m .50375 .32 L s .5 .36 m .50375 .36 L s .5 .44 m .50375 .44 L s .5 .48 m .50375 .48 L s .5 .52 m .50375 .52 L s .5 .56 m .50375 .56 L s .5 .64 m .50375 .64 L s .5 .68 m .50375 .68 L s .5 .72 m .50375 .72 L s .5 .76 m .50375 .76 L s .5 .84 m .50375 .84 L s .5 .88 m .50375 .88 L s .5 .92 m .50375 .92 L s .5 .96 m .50375 .96 L s .25 Mabswid .5 0 m .5 1 L s 0 0 m 1 0 L 1 1 L 0 1 L closepath clip newpath 0 1 0 r .5 Mabswid .75 .6 m 1 .6 L s 0 0 1 r 1 .6 m .75 .8 L s 1 0 0 r .75 .8 m .75 .6 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 288}, ImageMargins->{{35, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgOoIfMT2o`00o`cofMWI002AomWIf@03o`000?oIfMWofMWI04;ofMWI00?oo`00omWIfOoI fMT0>?oIfMT00ol00?oofMWIomWIf@0ooIfMT0097ofMWI00?o0000omWIfOoIfMT0@_oIfMT00ooo003ofMWIomWI f@09omWIf@03o`00oooIfMWofMWI03_ofMWI002AomWIf@03o`000?oIfMWofMWI04;ofMWI00?oo`00 omWIfOoIfMT02?oIfMT00ol00?oofMWIomWIf@0lomWIf@00TOoIfMT00ol0003ofMWIomWIf@12omWI f@03ool00?oIfMWofMWI00OofMWI00?o003oomWIfOoIfMT0?OoIfMT0097ofMWI00?o0000omWIfOoI fMT0@_oIfMT00ooo003ofMWIomWIf@05omWIf@;o003o@?oIfMT0097ofMWI00?o0000omWIfOoIfMT0 @_oIfMT00ooo003ofMWIomWIf@04omWIf@03o`00oooIfMWofMWI043ofMWI002AomWIf@03o`000?oI fMWofMWI04;ofMWI00?oo`00omWIfOoIfMT00ooIfMT00ol00?oofMWIomWIf@11omWIf@00TOoIfMT0 0ol0003ofMWIomWIf@12omWIf@04ool00?oIfMWofMWIomWIf@;o003oA?oIfMT0097ofMWI00?o0000 omWIfOoIfMT0@_oIfMT01?oo003ofMWIomWIfOl00?m6omWIf@00QooIfMT5o`0000GofMWI00?o0000 omWIfOoIfMT0@_oIfMT00ooo003ofMWIo`00o`17omWIf@00R?oIfMT01?l0003ofMWIomWIfOl00005 omWIf@03o`000?oIfMWofMWI04;ofMWI00?oo`00o`00oooIfMT0AooIfMT008WofMWI00?o0000omWI fOoIfMT01OoIfMT2o`0004?ofMWI00?oo`00omWIfOoIfMT0AooIfMT008[ofMWI00?o0000omWIfOoI fMT01?oIfMT00ol0003ofMWIomWIf@2"], ImageRangeCache->{{{0, 287}, {287, 0}} -> {-2.08635, -2.08096, 0.0143886, \ 0.0179858}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell["\<\ So that we don't have to type in the vertices everytime, we define:\ \ \>", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(vtri = {{1, 1}, {2, 1}, {1, 2}}\)], "Input"], Cell[BoxData[ \({{1, 1}, {2, 1}, {1, 2}}\)], "Output"] }, Open ]], Cell["\<\ Now we can just stick this in for the vertices. Here is it without \ colored sides (using sides rather than colorsides.)\ \>", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(\(\(\ \)\(Show[ Graphics[sides[vtri], AspectRatio \[Rule] 1, \ Axes \[Rule] True, \ AxesOrigin \[Rule] {0, 0}, \ PlotRange \[Rule] {{\(-2\), 2}, {\(-2\), 3}}]]\)\)\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: 1 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.5 0.25 0.4 0.2 [ [0 .3875 -6 -9 ] [0 .3875 6 0 ] [.125 .3875 -12 -9 ] [.125 .3875 12 0 ] [.25 .3875 -6 -9 ] [.25 .3875 6 0 ] [.375 .3875 -12 -9 ] [.375 .3875 12 0 ] [.625 .3875 -9 -9 ] [.625 .3875 9 0 ] [.75 .3875 -3 -9 ] [.75 .3875 3 0 ] [.875 .3875 -9 -9 ] [.875 .3875 9 0 ] [1 .3875 -3 -9 ] [1 .3875 3 0 ] [.4875 0 -12 -4.5 ] [.4875 0 0 4.5 ] [.4875 .2 -12 -4.5 ] [.4875 .2 0 4.5 ] [.4875 .6 -6 -4.5 ] [.4875 .6 0 4.5 ] [.4875 .8 -6 -4.5 ] [.4875 .8 0 4.5 ] [.4875 1 -6 -4.5 ] [.4875 1 0 4.5 ] [ 0 0 0 0 ] [ 1 1 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .4 m 0 .40625 L s [(-2)] 0 .3875 0 1 Mshowa .125 .4 m .125 .40625 L s [(-1.5)] .125 .3875 0 1 Mshowa .25 .4 m .25 .40625 L s [(-1)] .25 .3875 0 1 Mshowa .375 .4 m .375 .40625 L s [(-0.5)] .375 .3875 0 1 Mshowa .625 .4 m .625 .40625 L s [(0.5)] .625 .3875 0 1 Mshowa .75 .4 m .75 .40625 L s [(1)] .75 .3875 0 1 Mshowa .875 .4 m .875 .40625 L s [(1.5)] .875 .3875 0 1 Mshowa 1 .4 m 1 .40625 L s [(2)] 1 .3875 0 1 Mshowa .125 Mabswid .025 .4 m .025 .40375 L s .05 .4 m .05 .40375 L s .075 .4 m .075 .40375 L s .1 .4 m .1 .40375 L s .15 .4 m .15 .40375 L s .175 .4 m .175 .40375 L s .2 .4 m .2 .40375 L s .225 .4 m .225 .40375 L s .275 .4 m .275 .40375 L s .3 .4 m .3 .40375 L s .325 .4 m .325 .40375 L s .35 .4 m .35 .40375 L s .4 .4 m .4 .40375 L s .425 .4 m .425 .40375 L s .45 .4 m .45 .40375 L s .475 .4 m .475 .40375 L s .525 .4 m .525 .40375 L s .55 .4 m .55 .40375 L s .575 .4 m .575 .40375 L s .6 .4 m .6 .40375 L s .65 .4 m .65 .40375 L s .675 .4 m .675 .40375 L s .7 .4 m .7 .40375 L s .725 .4 m .725 .40375 L s .775 .4 m .775 .40375 L s .8 .4 m .8 .40375 L s .825 .4 m .825 .40375 L s .85 .4 m .85 .40375 L s .9 .4 m .9 .40375 L s .925 .4 m .925 .40375 L s .95 .4 m .95 .40375 L s .975 .4 m .975 .40375 L s .25 Mabswid 0 .4 m 1 .4 L s .5 0 m .50625 0 L s [(-2)] .4875 0 1 0 Mshowa .5 .2 m .50625 .2 L s [(-1)] .4875 .2 1 0 Mshowa .5 .6 m .50625 .6 L s [(1)] .4875 .6 1 0 Mshowa .5 .8 m .50625 .8 L s [(2)] .4875 .8 1 0 Mshowa .5 1 m .50625 1 L s [(3)] .4875 1 1 0 Mshowa .125 Mabswid .5 .04 m .50375 .04 L s .5 .08 m .50375 .08 L s .5 .12 m .50375 .12 L s .5 .16 m .50375 .16 L s .5 .24 m .50375 .24 L s .5 .28 m .50375 .28 L s .5 .32 m .50375 .32 L s .5 .36 m .50375 .36 L s .5 .44 m .50375 .44 L s .5 .48 m .50375 .48 L s .5 .52 m .50375 .52 L s .5 .56 m .50375 .56 L s .5 .64 m .50375 .64 L s .5 .68 m .50375 .68 L s .5 .72 m .50375 .72 L s .5 .76 m .50375 .76 L s .5 .84 m .50375 .84 L s .5 .88 m .50375 .88 L s .5 .92 m .50375 .92 L s .5 .96 m .50375 .96 L s .25 Mabswid .5 0 m .5 1 L s 0 0 m 1 0 L 1 1 L 0 1 L closepath clip newpath .5 Mabswid .75 .6 m 1 .6 L s 1 .6 m .75 .8 L s .75 .8 m .75 .6 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 288}, ImageMargins->{{35, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgOoIfMT2o`0000cofMWI002AomWIf@03 o`000?oIfMWofMWI04;ofMWI00?o0000omWIfOoIfMT0>?oIfMT00ol0003ofMWIomWIf@0ooIfMT0097ofMWI00?o 0000omWIfOoIfMT0@_oIfMT00ol0003ofMWIomWIf@09omWIf@03o`000?oIfMWofMWI03_ofMWI002A omWIf@03o`000?oIfMWofMWI04;ofMWI00?o0000omWIfOoIfMT02?oIfMT00ol0003ofMWIomWIf@0l omWIf@00TOoIfMT00ol0003ofMWIomWIf@12omWIf@03o`000?oIfMWofMWI00OofMWI00?o0000omWI fOoIfMT0?OoIfMT0097ofMWI00?o0000omWIfOoIfMT0@_oIfMT00ol0003ofMWIomWIf@05omWIf@;o 0000@?oIfMT0097ofMWI00?o0000omWIfOoIfMT0@_oIfMT00ol0003ofMWIomWIf@04omWIf@03o`00 0?oIfMWofMWI043ofMWI002AomWIf@03o`000?oIfMWofMWI04;ofMWI00?o0000omWIfOoIfMT00ooI fMT00ol0003ofMWIomWIf@11omWIf@00TOoIfMT00ol0003ofMWIomWIf@12omWIf@04o`000?oIfMWo fMWIomWIf@;o0000A?oIfMT0097ofMWI00?o0000omWIfOoIfMT0@_oIfMT01?l0003ofMWIomWIfOl0 0016omWIf@00QooIfMT5o`0000GofMWI00?o0000omWIfOoIfMT0@_oIfMT00ol0003ofMWIo`000017 omWIf@00R?oIfMT01?l0003ofMWIomWIfOl00005omWIf@03o`000?oIfMWofMWI04;ofMWI0_l00018 omWIf@00ROoIfMT00ol0003ofMWIomWIf@05omWIf@;o0000@ooIfMT00ol0003ofMWIomWIf@17omWI f@00R_oIfMT00ol0003ofMWIomWIf@04omWIf@03o`000?oIfMWofMWI08cofMWI0027omWIf@05o`00 0?oIfMWofMWIomWIfOl000001OoIfMT00ol0003ofMWIomWIf@2"], ImageRangeCache->{{{0, 287}, {287, 0}} -> {-2.08635, -2.08096, 0.0143886, \ 0.0179858}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell["\<\ If we want to move the triangle in the plane we use the linear \ operators we saw in class.\ \>", "Subsubsection"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"Mystery", "=", RowBox[{"(", GridBox[{ {\(-1\), "0"}, {"0", \(-1\)} }], ")"}]}]], "Input"], Cell[BoxData[ \({{\(-1\), 0}, {0, \(-1\)}}\)], "Output"] }, Open ]], Cell[TextData[StyleBox["Question 1: What will Mystery do to the triangle? Why \ do you think this?", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell["\<\ \ \>", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["\<\ Now we need to multiply all the veritces by the mystery matrix to \ move them. We could just do this individually, but there is another \ way\ \>", "Subsubsection"], Cell[BoxData[ \(\(?Apply\)\)], "Input"], Cell[BoxData[ \(MultM[u_, v_] := Mystery . {u, v}\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(newvert = Apply[MultM, vtri, 1]\)], "Input"], Cell[BoxData[ \({{\(-1\), \(-1\)}, {\(-2\), \(-1\)}, {\(-1\), \(-2\)}}\)], "Output"] }, Open ]], Cell[TextData[StyleBox["Question 2: What did Mystery do to the triangle? \ Display the new triangle and tell what happened.", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\ \)\)], "Input"] }, Open ]], Cell[CellGroupData[{ Cell["\<\ Now we will look at another reason order of matrix multiplication \ matters\ \>", "Subsubsection"], Cell["\<\ The following triangle was made by taking the orignal triangle \ rotating it 45 degrees then flipping it about the line y=x.\ \>", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Show[ Graphics[colorsides[{{1\/\@2, 3\/\@2}, {0, 2\/\@2}, {\(-1\)\/\@2, 3\/\@2}}], AspectRatio \[Rule] 1, \ Axes \[Rule] True, AxesOrigin \[Rule] {0, 0}, \ PlotRange \[Rule] {{\(-2\), 2}, {\(-2\), 3}}]]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: 1 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.5 0.25 0.4 0.2 [ [0 .3875 -6 -9 ] [0 .3875 6 0 ] [.125 .3875 -12 -9 ] [.125 .3875 12 0 ] [.25 .3875 -6 -9 ] [.25 .3875 6 0 ] [.375 .3875 -12 -9 ] [.375 .3875 12 0 ] [.625 .3875 -9 -9 ] [.625 .3875 9 0 ] [.75 .3875 -3 -9 ] [.75 .3875 3 0 ] [.875 .3875 -9 -9 ] [.875 .3875 9 0 ] [1 .3875 -3 -9 ] [1 .3875 3 0 ] [.4875 0 -12 -4.5 ] [.4875 0 0 4.5 ] [.4875 .2 -12 -4.5 ] [.4875 .2 0 4.5 ] [.4875 .6 -6 -4.5 ] [.4875 .6 0 4.5 ] [.4875 .8 -6 -4.5 ] [.4875 .8 0 4.5 ] [.4875 1 -6 -4.5 ] [.4875 1 0 4.5 ] [ 0 0 0 0 ] [ 1 1 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .4 m 0 .40625 L s [(-2)] 0 .3875 0 1 Mshowa .125 .4 m .125 .40625 L s [(-1.5)] .125 .3875 0 1 Mshowa .25 .4 m .25 .40625 L s [(-1)] .25 .3875 0 1 Mshowa .375 .4 m .375 .40625 L s [(-0.5)] .375 .3875 0 1 Mshowa .625 .4 m .625 .40625 L s [(0.5)] .625 .3875 0 1 Mshowa .75 .4 m .75 .40625 L s [(1)] .75 .3875 0 1 Mshowa .875 .4 m .875 .40625 L s [(1.5)] .875 .3875 0 1 Mshowa 1 .4 m 1 .40625 L s [(2)] 1 .3875 0 1 Mshowa .125 Mabswid .025 .4 m .025 .40375 L s .05 .4 m .05 .40375 L s .075 .4 m .075 .40375 L s .1 .4 m .1 .40375 L s .15 .4 m .15 .40375 L s .175 .4 m .175 .40375 L s .2 .4 m .2 .40375 L s .225 .4 m .225 .40375 L s .275 .4 m .275 .40375 L s .3 .4 m .3 .40375 L s .325 .4 m .325 .40375 L s .35 .4 m .35 .40375 L s .4 .4 m .4 .40375 L s .425 .4 m .425 .40375 L s .45 .4 m .45 .40375 L s .475 .4 m .475 .40375 L s .525 .4 m .525 .40375 L s .55 .4 m .55 .40375 L s .575 .4 m .575 .40375 L s .6 .4 m .6 .40375 L s .65 .4 m .65 .40375 L s .675 .4 m .675 .40375 L s .7 .4 m .7 .40375 L s .725 .4 m .725 .40375 L s .775 .4 m .775 .40375 L s .8 .4 m .8 .40375 L s .825 .4 m .825 .40375 L s .85 .4 m .85 .40375 L s .9 .4 m .9 .40375 L s .925 .4 m .925 .40375 L s .95 .4 m .95 .40375 L s .975 .4 m .975 .40375 L s .25 Mabswid 0 .4 m 1 .4 L s .5 0 m .50625 0 L s [(-2)] .4875 0 1 0 Mshowa .5 .2 m .50625 .2 L s [(-1)] .4875 .2 1 0 Mshowa .5 .6 m .50625 .6 L s [(1)] .4875 .6 1 0 Mshowa .5 .8 m .50625 .8 L s [(2)] .4875 .8 1 0 Mshowa .5 1 m .50625 1 L s [(3)] .4875 1 1 0 Mshowa .125 Mabswid .5 .04 m .50375 .04 L s .5 .08 m .50375 .08 L s .5 .12 m .50375 .12 L s .5 .16 m .50375 .16 L s .5 .24 m .50375 .24 L s .5 .28 m .50375 .28 L s .5 .32 m .50375 .32 L s .5 .36 m .50375 .36 L s .5 .44 m .50375 .44 L s .5 .48 m .50375 .48 L s .5 .52 m .50375 .52 L s .5 .56 m .50375 .56 L s .5 .64 m .50375 .64 L s .5 .68 m .50375 .68 L s .5 .72 m .50375 .72 L s .5 .76 m .50375 .76 L s .5 .84 m .50375 .84 L s .5 .88 m .50375 .88 L s .5 .92 m .50375 .92 L s .5 .96 m .50375 .96 L s .25 Mabswid .5 0 m .5 1 L s 0 0 m 1 0 L 1 1 L 0 1 L closepath clip newpath 0 1 0 r .5 Mabswid .67678 .82426 m .5 .68284 L s 0 0 1 r .5 .68284 m .32322 .82426 L s 1 0 0 r .32322 .82426 m .67678 .82426 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 288}, ImageMargins->{{35, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgomWIf@03 o`000?oIfMWofMWI00kofMWI00?o0?l0omWIfOoIfMT0NooIfMT007kofMWI0_l00?lAomWIf@03o`00 0?oIfMWofMWI00oofMWI00?o0?l0omWIfOoIfMT0N_oIfMT007gofMWI00?o003oomWIfOoIfMT04OoI fMT00ol0003ofMWIomWIf@0@omWIf@03o`3o0?oIfMWofMWI07WofMWI001lomWIf@03o`00oooIfMWo fMWI01;ofMWI00?o0000omWIfOoIfMT04OoIfMT2o`3o07WofMWI001komWIf@03o`00oooIfMWofMWI 01?ofMWI00?o0000omWIfOoIfMT04ooIfMT00ol0o`3ofMWIomWIf@1fomWIf@00NOoIfMT2o`00oaKo fMWI00?o0000omWIfOoIfMT05?oIfMT00ol0o`3ofMWIomWIf@1eomWIf@00N?oIfMT00ol00?oofMWI omWIf@0FomWIf@03o`000?oIfMWofMWI01GofMWI0_l0o`1eomWIf@00MooIfMT00ol00?oofMWIomWI f@0GomWIf@03o`000?oIfMWofMWI01OofMWI00?o0?l0omWIfOoIfMT0L_oIfMT007GofMWI0_l00?lJ omWIf@;o00006OoIfMT00ol0o`3ofMWIomWIf@1aomWIf@00M?oIfMT00ol00?oofMWIomWIf@0JomWI f@03o`000?oIfMWofMWI01WofMWI00?o0?l0omWIfOoIfMT0L?oIfMT007?ofMWI00?o003oomWIfOoI fMT06ooIfMT00ol0003ofMWIomWIf@0JomWIf@;o0?l0L?oIfMT007;ofMWI00?o003oomWIfOoIfMT0 7?oIfMT00ol0003ofMWIomWIf@0LomWIf@03o`3o0?oIfMWofMWI06gofMWI001`omWIf@;o003o7ooI fMT00ol0003ofMWIomWIf@0MomWIf@03o`3o0?oIfMWofMWI06cofMWI001_omWIf@03o`00oooIfMWo fMWI01oofMWI00?o0000omWIfOoIfMT07_oIfMT00ol0o`3ofMWIomWIf@1[omWIf@00K_oIfMT00ol0 0?oofMWIomWIf@0PomWIf@03o`000?oIfMWofMWI01oofMWI0_l0o`1[omWIf@00K?oIfMT2o`00ob?o fMWI00?o0000omWIfOoIfMT08OoIfMT00ol0o`3ofMWIomWIf@1XomWIf@00JooIfMT00ol00?oofMWI omWIf@0SomWIf@03o`000?oIfMWofMWI02;ofMWI00?o0?l0omWIfOoIfMT0IooIfMT006[ofMWI00?o 003oomWIfOoIfMT06_oIfMT5o`0000GofMWI00?o0000omWIfOoIfMT08ooIfMT00ol0o`3ofMWIomWI f@1VomWIf@00JOoIfMT00ol00?oofMWIomWIf@0LomWIf@04o`000?oIfMWofMWIo`0000GofMWI00?o 0000omWIfOoIfMT09?oIfMT2o`3o06KofMWI001WomWIf@;o003o8?oIfMT00ol0003ofMWIomWIf@05 omWIf@;o00009ooIfMT00ol0o`3ofMWIomWIf@1SomWIf@00I_oIfMT00ol00?oofMWIomWIf@0QomWI f@03o`000?oIfMWofMWI00CofMWI00?o0000omWIfOoIfMT09ooIfMT00ol0o`3ofMWIomWIf@1RomWI f@00IOoIfMT00ol00?oofMWIomWIf@0OomWIf@05o`000?oIfMWofMWIomWIfOl000001OoIfMT00ol0 003ofMWIomWIf@0XomWIf@03o`3o0?oIfMWofMWI067ofMWI001SomWIf@;o003o8_oIfMT01Ol0003o fMWIomWIfOoIfMWo000000GofMWI00?o0000omWIfOoIfMT0:OoIfMT2o`3o067ofMWI001RomWIf@03 o`00oooIfMWofMWI02?ofMWI0ol00006omWIf@03o`000?oIfMWofMWI02_ofMWI00?o0?l0omWIfOoI fMT0G_oIfMT0067ofMWI00?o003oomWIfOoIfMT0;OoIfMT00ol0003ofMWIomWIf@0/omWIf@03o`3o 0?oIfMWofMWI05gofMWI001PomWIf@03o`00oooIfMWofMWI02kofMWI00?o0000omWIfOoIfMT0;OoI fMT00ol0o`3ofMWIomWIf@1LomWIf@00GooIfMUTool005gofMWI002AomWIf@03o`000?oIfMWofMWI 08cofMWI002AomWIf@03o`000?oIfMWofMWI08cofMWI002AomWIf@03o`000?oIfMWofMWI08cofMWI 002AomWIf@03o`000?oIfMWofMWI08cofMWI002AomWIf@;o0000SOoIfMT0097ofMWI00?o0000omWI fOoIfMT0S?oIfMT0097ofMWI00?o0000omWIfOoIfMT0S?oIfMT0097ofMWI00?o0000omWIfOoIfMT0 S?oIfMT0097ofMWI00?o0000omWIfOoIfMT0S?oIfMT0097ofMWI00?o0000omWIfOoIfMT0S?oIfMT0 097ofMWI00?o0000omWIfOoIfMT0S?oIfMT0097ofMWI00?o0000omWIfOoIfMT0S?oIfMT0097ofMWI 00?o0000omWIfOoIfMT0S?oIfMT0097ofMWI00?o0000omWIfOoIfMT0S?oIfMT0097ofMWI00?o0000 omWIfOoIfMT0S?oIfMT0097ofMWI0_l0002=omWIf@00TOoIfMT00ol0003ofMWIomWIf@2"], ImageRangeCache->{{{0, 287}, {287, 0}} -> {-2.08635, -2.08096, 0.0143886, \ 0.0179858}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[TextData[StyleBox["Question 3: What are the two matrices that were used \ here? Define them.", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\ \)\)], "Input"], Cell[TextData[StyleBox["Question 4: To apply two matrix operators we apply \ one then the other. Does the order of application matter? Check by applying \ the two matrices from the previous question in both orders.", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\ \(\[IndentingNewLine]\)\)\)], "Input"], Cell[TextData[StyleBox["Question 5: Which way did we multiply to get the \ original picture? Why does that order make sense?", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell["\<\ \ \>", "Text"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["Some other graphics operations.", "Subsection"], Cell["\<\ We dealt with operations which mostly preserved shape. Some \ operators do not preserve shape. For example this matrix performs something \ called a shear.\ \>", "Text"], Cell[BoxData[ RowBox[{"Shear", "=", RowBox[{"(", GridBox[{ {"1", "2"}, {"0", "1"} }], ")"}]}]], "Input"], Cell[TextData[StyleBox["Question 6: Define a shape with at least four sides. \ See what shear does to the shape. What does it do geometrically?", FontColor->RGBColor[1, 0, 0]]], "Text"], Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\(\[IndentingNewLine]\)\ \)\)], "Input"], Cell["\<\ You've now seen the basics of how matrices are used to manipulate \ computer graphics. There is much more to learn, especially when doing 3D \ graphics.\ \>", "Text"] }, Open ]] }, Open ]] }, FrontEndVersion->"5.0 for Macintosh", ScreenRectangle->{{0, 1024}, {0, 742}}, AutoGeneratedPackage->Automatic, WindowSize->{676, 599}, WindowMargins->{{0, Automatic}, {Automatic, 0}}, StyleDefinitions -> "Report.nb" ] (******************************************************************* 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, 137, 3, 46, "Subsubtitle"], Cell[1916, 58, 58, 1, 32, "Input"], Cell[CellGroupData[{ Cell[1999, 63, 136, 3, 30, "Subsubsection"], Cell[2138, 68, 467, 9, 113, "Input", InitializationCell->True], Cell[2608, 79, 405, 7, 113, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[3050, 91, 233, 5, 72, "Subsection"], Cell[CellGroupData[{ Cell[3308, 100, 227, 4, 48, "Input"], Cell[3538, 106, 20501, 515, 304, 3160, 296, "GraphicsData", "PostScript", \ "Graphics"], Cell[24042, 623, 130, 3, 47, "Output"] }, Open ]], Cell[24187, 629, 93, 3, 28, "Text"], Cell[CellGroupData[{ Cell[24305, 636, 64, 1, 32, "Input"], Cell[24372, 639, 58, 1, 47, "Output"] }, Open ]], Cell[24445, 643, 144, 3, 28, "Text"], Cell[CellGroupData[{ Cell[24614, 650, 220, 4, 48, "Input"], Cell[24837, 656, 20420, 511, 304, 3136, 293, "GraphicsData", "PostScript", \ "Graphics"], Cell[45260, 1169, 130, 3, 47, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[45427, 1177, 124, 3, 30, "Subsubsection"], Cell[CellGroupData[{ Cell[45576, 1184, 159, 5, 46, "Input"], Cell[45738, 1191, 60, 1, 47, "Output"] }, Open ]], Cell[45813, 1195, 142, 2, 28, "Text"], Cell[45958, 1199, 27, 5, 76, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[46022, 1209, 175, 4, 46, "Subsubsection"], Cell[46200, 1215, 43, 1, 32, "Input"], Cell[46246, 1218, 66, 1, 32, "Input"], Cell[CellGroupData[{ Cell[46337, 1223, 64, 1, 32, "Input"], Cell[46404, 1226, 88, 1, 47, "Output"] }, Open ]], Cell[46507, 1230, 168, 2, 28, "Text"], Cell[46678, 1234, 108, 2, 80, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[46823, 1241, 108, 3, 30, "Subsubsection"], Cell[46934, 1246, 148, 3, 28, "Text"], Cell[CellGroupData[{ Cell[47107, 1253, 274, 5, 90, "Input"], Cell[47384, 1260, 19514, 502, 304, 3198, 296, "GraphicsData", "PostScript", \ "Graphics"], Cell[66901, 1764, 130, 3, 47, "Output"] }, Open ]], Cell[67046, 1770, 141, 2, 28, "Text"], Cell[67190, 1774, 108, 2, 80, "Input"], Cell[67301, 1778, 259, 3, 44, "Text"], Cell[67563, 1783, 131, 2, 96, "Input"], Cell[67697, 1787, 169, 2, 28, "Text"], Cell[67869, 1791, 27, 5, 76, "Text"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[67945, 1802, 53, 0, 40, "Subsection"], Cell[68001, 1804, 179, 4, 44, "Text"], Cell[68183, 1810, 151, 5, 46, "Input"], Cell[68337, 1817, 189, 2, 28, "Text"], Cell[68529, 1821, 108, 2, 80, "Input"], Cell[68640, 1825, 176, 4, 44, "Text"] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)