(************** Content-type: application/mathematica ************** 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[ 15503, 404]*) (*NotebookOutlinePosition[ 16762, 448]*) (* CellTagsIndexPosition[ 16666, 441]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Coloring directions", "Subtitle", Evaluatable->False, CellAutoOverwrite->False], Cell["\<\ I. Cnop Vrije unitiversiteit Brussel icnop@vub.ac.be\ \>", "Subsubtitle"], Cell[CellGroupData[{ Cell["Loading the package", "Section"], Cell["<True, FontColor->GrayLevel[1], CellTags->"S5.30.1"], Cell["\<\ For students that are not familiar with complex notations it is \ easy to hide these and start from a naive understanding of direction:\ \>", \ "Text", FontWeight->"Bold"] }, Open ]], Cell[CellGroupData[{ Cell["Choosing directions", "Section"], Cell[TextData[{ "These are given by unit vectors unit(0), unit (1), ... from the origin in \ the plane. \nTell the computer how many you want: choose a number \ \"mynumber\" of directions in the plane and ", StyleBox["click the cell", FontColor->RGBColor[1, 0, 0]], ". \n" }], "MathCaption", Evaluatable->False, CellAutoOverwrite->False, CellTags->{"S5.30.1", "1.5"}], Cell[BoxData[ \(\(mynumber = 27;\)\)], "Input"], Cell[BoxData[ \(TraditionalForm\`unit( k_) := \[ExponentialE]\^\(\(2\ \[Pi]\ \[ImaginaryI]\ \ k\)\/mynumber\)\)], "Input", InitializationCell->True, CellAutoOverwrite->False, FontSize->16, FontColor->GrayLevel[1], CellTags->"S5.30.1"], Cell[TextData[{ "Next we plot the endpoints in color. \n", StyleBox["Click the next cell", FontColor->RGBColor[1, 0, 0]], " to see the result." }], "Text"], Cell[CellGroupData[{ Cell[TextData[{ "Show[\n\tGraphics[\n\t\tTable[\n \t\t\t{ArgColor[unit[j]],\n \t\t\t\t\ Disk[{Re[unit[j]], Im[unit[j]]}, 0.06]},\n \t\t {j, mynumber}]\n \t\t ", ", AspectRatio -> Automatic", StyleBox["\n \t\t", FontColor->GrayLevel[0.500008]], "]\n \t]" }], "Input", CellAutoOverwrite->False, FontColor->GrayLevel[1], CellTags->"S5.30.1"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: 1.0016 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.498476 0.450674 0.500799 0.450674 [ [ 0 0 0 0 ] [ 1 1.0016 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 0 m 1 0 L 1 1.0016 L 0 1.0016 L closepath clip newpath 1 .222 0 r .937 .60473 m .937 .60473 .02704 0 365.73 arc F 1 .444 0 r .90121 .70306 m .90121 .70306 .02704 0 365.73 arc F 1 .667 0 r .84371 .79049 m .84371 .79049 .02704 0 365.73 arc F 1 .889 0 r .7676 .8623 m .7676 .8623 .02704 0 365.73 arc F .889 1 0 r .67698 .91462 m .67698 .91462 .02704 0 365.73 arc F .667 1 0 r .57674 .94463 m .57674 .94463 .02704 0 365.73 arc F .444 1 0 r .47227 .95071 m .47227 .95071 .02704 0 365.73 arc F .222 1 0 r .36922 .93254 m .36922 .93254 .02704 0 365.73 arc F 0 1 0 r .27314 .89109 m .27314 .89109 .02704 0 365.73 arc F 0 1 .222 r .18921 .82861 m .18921 .82861 .02704 0 365.73 arc F 0 1 .444 r .12194 .74845 m .12194 .74845 .02704 0 365.73 arc F 0 1 .667 r .07498 .65494 m .07498 .65494 .02704 0 365.73 arc F 0 1 .889 r .05085 .55312 m .05085 .55312 .02704 0 365.73 arc F 0 .889 1 r .05085 .44848 m .05085 .44848 .02704 0 365.73 arc F 0 .667 1 r .07498 .34666 m .07498 .34666 .02704 0 365.73 arc F 0 .444 1 r .12194 .25315 m .12194 .25315 .02704 0 365.73 arc F 0 .222 1 r .18921 .17299 m .18921 .17299 .02704 0 365.73 arc F 0 0 1 r .27314 .1105 m .27314 .1105 .02704 0 365.73 arc F .222 0 1 r .36922 .06906 m .36922 .06906 .02704 0 365.73 arc F .444 0 1 r .47227 .05089 m .47227 .05089 .02704 0 365.73 arc F .667 0 1 r .57674 .05697 m .57674 .05697 .02704 0 365.73 arc F .889 0 1 r .67698 .08698 m .67698 .08698 .02704 0 365.73 arc F 1 0 .889 r .7676 .1393 m .7676 .1393 .02704 0 365.73 arc F 1 0 .667 r .84371 .21111 m .84371 .21111 .02704 0 365.73 arc F 1 0 .444 r .90121 .29854 m .90121 .29854 .02704 0 365.73 arc F 1 0 .222 r .937 .39687 m .937 .39687 .02704 0 365.73 arc F 1 0 0 r .94915 .5008 m .94915 .5008 .02704 0 365.73 arc F % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 288.438}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg03o4Oooool@og40o`oooooo3_nZ0?mdooooo`00I?ooool;ocP0oa3ooooo4?ma0?l? ooooo`koZP3oM?ooool006Cooooo2olh0?l@oooooa3oL@3o3_ooool@ojX0og?ooooo001Sooooo`go >03o4?ooool?og40o`kooooo4?nZ0?mcooooo`00H_ooool?ocP0o`oooooo3oma0?l>oooooa3oZP3o 5?ooool4on<0oe_ooooo001Rooooo`oo>03o4?ooool=og40oa3ooooo3onZ0?lAooooo`Woh`3oFOoo ool006;ooooo3olh0?l@ooooo`coL@3o4Oooool>ojX0oa7ooooo2ooS0?mHooooo`00H_ooool?ocP0 oa;ooooo2Oma0?lCooooo`goZP3o4Oooool;on<0oeSooooo001Rooooo`oo>03o4oooool7og40oaCo oooo3?nZ0?lAooooo`goh`3oEoooool006;ooooo3olh0?laooooo`SoZP3o4Oooool>on<0oeOooooo 001Sooooo`ko>03o=?ooool4ojX0oa;ooooo3ooS0?mFooooo`00Boooool6o`00oa?ooooo3?lh0?m: oooooa3oh`3oE_ooool004[ooooo2Ol00?lBooooo`Wo>03oC?ooool@on<0oeKooooo0019ooooo`_o 003o4_ooool7ocP0odgooooo4?oS0?mFooooo`00B?oooolool0hcgooooo001;ooooo`Oo003oPooo ool?ool0hccooooo001>ooooo`;o003oQ?ooool@ool0hccooooo003Doooooa3oo`3S??ooool00=Co oooo4?oo0>o`0hoicooooo1ooo0>=0ooooo`00;oooool>o`0hoioooooo0_oo0>=2ooooo`00;_oo ool@o`0hon;ooooo000^oooooa3o03Soh_ooool002kooooo4?l0>?oRooooo`00;oooool>o`0hon?o oooo000_ooooo`ko03Sohoooool0033ooooo3Ol0>?nbooooo`Koo`2Z:oooool0033ooooo3?l0>?nb ooooo`Woo`2Z:Oooool003;ooooo2Ol0>?nbooooo`_oo`2Z:?ooool003?ooooo1ol0>?nbooooo`co o`2Z:?ooool00>_ooooo3_oo0:XWooooo`00joooool>ool0ZROooooo003Zooooo`ooo`2Z9oooool0 0>[ooooo3ooo0:XWooooo`00j_ooool?ool0ZROooooo003Zooooo`ooo`2Z9oooool00>[ooooo3ooo 0:XWooooo`00joooool>ool0ZROooooo000Oooooo`Oo077oa_oooolo`1aooKooooo000Kooooo`oo077om_ooool001_ooooo 3ol0LOofooooo`006oooool?o`1aooKooooo000Kooooo`oo077om_ooool001_ooooo3ol0LOofoooo o`007?ooool>o`1aooKooooo000Mooooo`co077omoooool001kooooo2Ol0LOoHooooo`Ooo`1a6_oo ool001oooooo1ol0LOoHooooo`Woo`1a6Oooool00?gooooo2ooo074Hooooo`00o?ooool=ool0LAOo oooo003kooooo`ooo`1a5_ooool00?_ooooo3ooo074Fooooo`00n_ooool@ool0LAKooooo003joooo oa3oo`1a5_ooool00?[ooooo4?oo074Fooooo`00noooool?ool0LAKooooo003kooooo`ooo`1a5_oo ool00?cooooo3Ooo074Gooooo`00o?ooool=ool0LAOooooo003nooooo`Woo`1a6Oooool001;ooooo 1ol0Z_oVooooo`Ooo`1a6_ooool0017ooooo2Ol0Z_ooooooo`Oooooo000@ooooo`_o0:[oooooool6 ooooo`003ooooolooooo`ko0:[o ooooool5ooooo`003Oooool@o`2Zoooooooo1?ooool000gooooo4?l0Z_ooooooo`Cooooo000=oooo oa3o0:[oooooool4ooooo`003_ooool?o`2Zoooooooo1?ooool000kooooo3ol0Z_ooooooo`Cooooo 000?ooooo`go0:[oooooool5ooooo`003oooool13ooooo003oooooo`[ooooo2?oo03P?ooooo`00oooo ool8ooooo`_oo`0h3_ooool00?oooooo2?ooool;ool0>0kooooo003oooooo`Oooooo3Ooo03P=oooo o`00ooooool6ooooo`ooo`0h3?ooool00?oooooo1_ooool?ool0>0cooooo003oooooo`Kooooo3ooo 03P0cooooo003oooooo`Ko oooo3ooo03P0cooooo003o ooooo`Wooooo2ooo03P=ooooo`00ooooool:ooooo`Soo`0h3oooool000_ooooo1ol0hoojooooo`;o o`0h4_ooool000[ooooo2Ol0hoooooooo`kooooo0009ooooo`_o0>?oooooool=ooooo`002?ooool= o`3Soooooooo3?ooool000Oooooo3ol0hoooooooo`_ooooo0007ooooo`oo0>?oooooool;ooooo`00 1_ooool@o`3Soooooooo2oooool000Kooooo4?l0hoooooooo`_ooooo0006oooooa3o0>?oooooool; ooooo`001oooool?o`3Soooooooo2oooool000Oooooo3ol0hoooooooo`_ooooo0008ooooo`go0>?o ooooool?oooooool?ooooo`003_ooool2o`3Soogooooo1_oo000=ooooo`00ooooool=ooooo`Woo`00 2oooool00?oooooo3?ooool;ool000[ooooo003oooooo`_ooooo3?oo000:ooooo`00ooooool:oooo o`koo`002Oooool00?oooooo2_ooool>ool000Wooooo003oooooo`Wooooo4?oo0008ooooo`00oooo ool9oooooa3oo`002?ooool00?oooooo2Oooool@ool000Sooooo003oooooo`[ooooo3ooo0008oooo o`00ooooool:ooooo`ooo`002?ooool00?oooooo2oooool=ool000Wooooo003oooooo`_ooooo3?oo 000:ooooo`00ooooool=ooooo`Woo`002oooool00?oooooo3_ooool7ool000cooooo000;ooooo`Oo 0?oSo_ooool2ool000kooooo000:ooooo`Wo0?oSooooool>ooooo`002Oooool;o`3ohooooooo3Ooo ool000Sooooo3?l0on?oooooo`gooooo0007ooooo`ko0?oSooooool ooooo`002oooool7o`3ohooooooo3oooool000kooooo0_l0on?iooooo`OoocP04?ooool00?oooooo 2Oooool9oolh00oooooo003oooooo`Sooooo2ooo>00>ooooo`00ooooool7ooooo`goocP03Oooool0 0?oooooo1_ooool?oolh00cooooo003oooooo`Kooooo3ooo>000000o`3oZ_oooooo1Oooool000ko oooo3ol0oj[oooooo`Cooooo000=oooooa3o0?nZooooool4ooooo`003Oooool@o`3oZ_oooooo1?oo ool000gooooo4?l0oj[oooooo`Cooooo000>ooooo`oo0?nZooooool4ooooo`003_ooool>o`3oZ_oo oooo1Oooool000oooooo3Ol0oj[oooooo`Gooooo000Aooooo`[o0?nZooooool6ooooo`004_ooool7 o`3oZ^Kooooo1oooL@0Jooooo`005Oooool2o`3oZ^Oooooo2OooL@0Iooooo`00oOooool;ooma01So oooo003looooo`coog406?ooool00?_ooooo3_ooL@0Gooooo`00noooool?ooma01Kooooo003joooo oa3oog405_ooool00?[ooooo4?ooL@0Fooooo`00n_ooool@ooma01Kooooo003kooooo`ooog405_oo ool00?_ooooo3oooL@0Fooooo`00o?ooool=ooma01Oooooo003looooo`goog405oooool001oooooo 1ol0og7Hooooo`Woog406Oooool001kooooo2Ol0og7Hooooo`Ooog406_ooool001gooooo2ol0og7J ooooo`;oog407?ooool001gooooo2ol0og7hooooo`007?ooool=o`3oLOOooooo000Looooo`ko0?ma m_ooool001_ooooo3ol0og7fooooo`006oooool?o`3oLOKooooo000Kooooo`oo0?mam_ooool001_o oooo3ol0og7fooooo`006oooool?o`3oLOKooooo000Looooo`ko0?mam_ooool001gooooo3?l0og78 ooooo`CoojX0:oooool001kooooo2Ol0og77ooooo`WoojX0:Oooool001oooooo1ol0og77ooooo`_o ojX0:?ooool002;ooooo0_l0og79ooooo`_oojX0:?ooool00>cooooo3OooZP0Wooooo`00joooool> oonZ02Oooooo003[ooooo`koojX09oooool00>[ooooo3oooZP0Wooooo`00j_ooool?oonZ02Oooooo 003Zooooo`ooojX09oooool00>[ooooo3oooZP0Wooooo`00;;ooooo3_ooZP0Woooo o`00<_ooool9o`3o>;7ooooo3?ooZP0Xooooo`00;7ooooo2OooZP0Zooooo`00;;ooooo1oooZP0[ooooo`00;oooool>o`3o>;Cooooo0_ooZP0]ooooo`00;oooool>o`3o >>?ooooo000^oooooa3o0?lhh_ooool002kooooo4?l0ocSRooooo`00;_ooool@o`3o>>;ooooo000^ ooooo`oo0?lhhoooool002oooooo3_l0ocRLooooo`Koon<0@Oooool002oooooo3_l0ocRKooooo`Wo on<0?oooool0033ooooo3?l0ocRKooooo`_oon<0?_ooool003;ooooo2Ol0ocRKooooo`coon<0?_oo ool003?ooooo1ol0ocRKooooo`koon<0?Oooool003Kooooo0_l0ocRMooooo`koon<0?Oooool00=Co oooo4?ooh`0looooo`00e?ooool@oooS03cooooo001;ooooo`Ko0?l0Poooool@oooS03cooooo001: ooooo`Wo0?l0P_ooool>oooS03gooooo0019ooooo`_o0?l0POooool>oooS03gooooo0018ooooo`co 0?l0P_ooool=oooS03gooooo0017ooooo`ko0?l0POoooolon?o05Oooooo0018oooo o`co0?l04_ooool7ocSo04kooooo3_oSo`1Gooooo`00B_ooool9o`3o01;ooooo2Olho`1?l0Boooool@on?o05Kooooo001>ooooo`;o0?l04ooo ool=ocSo03Gooooo1?nZo`0Aoooooa3ohol0E_ooool006;ooooo3olho`0aooooo`SoZ_l04?ooool? on?o05Oooooo001Rooooo`oo>?l05_ooool4og7o01Gooooo2onZo`0?ooooo`oohol0Eoooool006;o oooo3olho`0Cooooo`SoLOl05?ooool;oj[o013ooooo3_oSo`1Gooooo`00H_ooool?ocSo017ooooo 2omao`0Booooo`goZ_l04?ooool?l04Oooool;og7o017ooooo3_nZ o`0Booooo`Wohol0FOooool006;ooooo3olho`0@ooooo`goLOl04?ooool?oj[o01;ooooo1ooSo`1J ooooo`00H_ooool?ocSo00oooooo3_mao`0?oooooa3oZ_l0Loooool006?ooooo3_lho`0?ooooo`oo LOl03_ooool@oj[o07?ooooo001Tooooo`co>?l03oooool@og7o00kooooo4?nZo`1cooooo`00IOoo ool9ocSo017ooooo4?mao`0?ooooo`ooZ_l0Loooool006Kooooo1olho`0Boooooa3oLOl03oooool> oj[o07Cooooo0020ooooo`ooLOl04?ooool=oj[o07Cooooo0020ooooo`koLOl04oooool:oj[o07Go oooo0021ooooo`coLOl05Oooool7oj[o07Oooooo0023ooooo`WoLOl06Oooool2oj[o07Wooooo0024 ooooo`OoLOl0UOooool008Oooooo0_mao`2Gooooo`00oooooolQooooo`00oooooolQooooo`00oooo oolQooooo`00oooooolQooooo`00oooooolQooooo`00oooooolQooooo`00\ \>"], ImageRangeCache->{{{0, 287}, {287.438, 0}} -> {-1.10616, -1.11123, \ 0.00773202, 0.00773202}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]] }, Open ]] }, Open ]] }, FrontEndVersion->"4.1 for Macintosh", ScreenRectangle->{{0, 1152}, {0, 746}}, AutoGeneratedPackage->None, WindowSize->{703, 711}, WindowMargins->{{66, Automatic}, {Automatic, 0}}, ShowCellLabel->False ] (******************************************************************* 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->{ "S5.30.1"->{ Cell[1968, 66, 116, 3, 27, "Input", InitializationCell->True, CellTags->"S5.30.1"], Cell[2348, 83, 384, 10, 50, "MathCaption", Evaluatable->False, CellTags->{"S5.30.1", "1.5"}], Cell[2789, 98, 256, 8, 38, "Input", InitializationCell->True, CellTags->"S5.30.1"], Cell[3238, 117, 364, 10, 147, "Input", CellTags->"S5.30.1"]}, "1.5"->{ Cell[2348, 83, 384, 10, 50, "MathCaption", Evaluatable->False, CellTags->{"S5.30.1", "1.5"}]} } *) (*CellTagsIndex CellTagsIndex->{ {"S5.30.1", 16137, 421}, {"1.5", 16530, 433} } *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1727, 52, 89, 2, 65, "Subtitle", Evaluatable->False], Cell[1819, 56, 83, 4, 89, "Subsubtitle"], Cell[CellGroupData[{ Cell[1927, 64, 38, 0, 56, "Section"], Cell[1968, 66, 116, 3, 27, "Input", InitializationCell->True, CellTags->"S5.30.1"], Cell[2087, 71, 183, 5, 50, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[2307, 81, 38, 0, 56, "Section"], Cell[2348, 83, 384, 10, 50, "MathCaption", Evaluatable->False, CellTags->{"S5.30.1", "1.5"}], Cell[2735, 95, 51, 1, 27, "Input"], Cell[2789, 98, 256, 8, 38, "Input", InitializationCell->True, CellTags->"S5.30.1"], Cell[3048, 108, 165, 5, 46, "Text"], Cell[CellGroupData[{ Cell[3238, 117, 364, 10, 147, "Input", CellTags->"S5.30.1"], Cell[3605, 129, 11725, 265, 297, 2268, 144, "GraphicsData", "PostScript", \ "Graphics"], Cell[15333, 396, 130, 3, 27, "Output"] }, Open ]] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)