(*^ ::[ Information = "This is a Mathematica Notebook file. It contains ASCII text, and can be transferred by email, ftp, or other text-file transfer utility. It should be read or edited using a copy of Mathematica or MathReader. If you received this as email, use your mail application or copy/paste to save everything from the line containing (*^ down to the line containing ^*) into a plain text file. On some systems you may have to give the file a name ending with ".ma" to allow Mathematica to recognize it as a Notebook. The line below identifies what version of Mathematica created this file, but it can be opened using any other version as well."; FrontEndVersion = "Macintosh Mathematica Notebook Front End Version 2.2"; MacintoshStandardFontEncoding; fontset = title, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeTitle, center, M7, bold, e8, 24, "Times"; fontset = subtitle, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeTitle, center, M7, bold, e6, 18, "Times"; fontset = subsubtitle, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeTitle, center, M7, italic, e6, 14, "Times"; fontset = section, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeSection, grayBox, M22, bold, a20, 18, "Times"; fontset = subsection, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeSection, blackBox, M19, bold, a15, 14, "Times"; fontset = subsubsection, inactive, noPageBreakBelow, nohscroll, preserveAspect, groupLikeSection, whiteBox, M18, bold, a12, 12, "Times"; fontset = text, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = smalltext, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 10, "Times"; fontset = input, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeInput, M42, N23, bold, L-5, 12, "Courier"; fontset = output, output, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, L-5, 12, "Courier"; fontset = message, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, R65535, L-5, 12, "Courier"; fontset = print, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, L-5, 12, "Courier"; fontset = info, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, B65535, L-5, 12, "Courier"; fontset = postscript, PostScript, formatAsPostScript, output, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeGraphics, M7, l34, w282, h287, 12, "Courier"; fontset = name, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, italic, 10, "Geneva"; fontset = header, inactive, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = leftheader, inactive, L2, 12, "Times"; fontset = footer, inactive, noKeepOnOnePage, preserveAspect, center, M7, 12, "Times"; fontset = leftfooter, inactive, L2, 12, "Times"; fontset = help, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 10, "Times"; fontset = clipboard, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = completions, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special1, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special2, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special3, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special4, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; fontset = special5, inactive, nohscroll, noKeepOnOnePage, preserveAspect, M7, 12, "Times"; paletteColors = 128; currentKernel; ] :[font = title; inactive; preserveAspect] Physics 4321 Homework 2 :[font = section; inactive; preserveAspect; startGroup] Setup: :[font = input; preserveAspect; endGroup] Clear["Global`*"]; Off[ General::spell ]; Off[ General::spell1]; Off[Clear::wrsym]; :[font = section; inactive; preserveAspect; startGroup] Load Packages: :[font = input; preserveAspect; endGroup] Needs["LinearAlgebra`Orthogonalization`"] Needs["Calculus`VectorAnalysis`"] Needs["Graphics`PlotField`"] Needs["Graphics`PlotField3D`"] Needs["Graphics`ParametricPlot3D`"] :[font = section; inactive; preserveAspect; startGroup] Unit Vectors in Polar Coordinates: :[font = subsection; inactive; preserveAspect] The r-Unit Vector: :[font = input; preserveAspect; startGroup] PlotVectorField[{x,y}/Sqrt[x^2+y^2], {x,-1,1},{y,-1,1},PlotPoints->9]; :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 282; endGroup] %! %%Creator: Mathematica %%AspectRatio: 1 MathPictureStart %% Graphics /Courier findfont 10 scalefont setfont % Scaling calculations 0.5 0.380952 0.5 0.380952 [ [ 0 0 0 0 ] [ 1 1 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p P % 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 [ arrx arrl div arry arrl div -1 arry mul arrl div arrx arrl div 0 0 ] concat -0.025 0.00625 moveto 0 0 lineto -0.025 -0.00625 lineto fill -0.025 0.00625 moveto 0 0 lineto -0.025 -0.00625 lineto -0.025 0.00625 lineto stroke grestore } def % End of user PostScript p p .004 w .11905 .11905 m .0517 .0517 L s % Start of user PostScript -1. -1. -1.17678 -1.17678 MAarrowhead1 % End of user PostScript P p .004 w .11905 .21429 m .04286 .15714 L s % Start of user PostScript -1. -0.75 -1.2 -0.9 MAarrowhead1 % End of user PostScript P p .004 w .11905 .30952 m .03386 .26693 L s % Start of user PostScript -1. -0.5 -1.22361 -0.611803 MAarrowhead1 % End of user PostScript P p .004 w .11905 .40476 m .02665 .38166 L s % Start of user PostScript -1. -0.25 -1.24254 -0.310634 MAarrowhead1 % End of user PostScript P p .004 w .11905 .5 m .02381 .5 L s % Start of user PostScript -1. 0 -1.25 0 MAarrowhead1 % End of user PostScript P p .004 w .11905 .59524 m .02665 .61834 L s % Start of user PostScript -1. 0.25 -1.24254 0.310634 MAarrowhead1 % End of user PostScript P p .004 w .11905 .69048 m .03386 .73307 L s % Start of user PostScript -1. 0.5 -1.22361 0.611803 MAarrowhead1 % End of user PostScript P p .004 w .11905 .78571 m .04286 .84286 L s % Start of user PostScript -1. 0.75 -1.2 0.9 MAarrowhead1 % End of user PostScript P p .004 w .11905 .88095 m .0517 .9483 L s % Start of user PostScript -1. 1. -1.17678 1.17678 MAarrowhead1 % End of user PostScript P p .004 w .21429 .11905 m .15714 .04286 L s % Start of user PostScript -0.75 -1. -0.9 -1.2 MAarrowhead1 % End of user PostScript P p .004 w .21429 .21429 m .14694 .14694 L s % Start of user PostScript -0.75 -0.75 -0.926777 -0.926777 MAarrowhead1 % End of user PostScript P p .004 w .21429 .30952 m .13504 .2567 L s % Start of user PostScript -0.75 -0.5 -0.958013 -0.638675 MAarrowhead1 % End of user PostScript P p .004 w .21429 .40476 m .12393 .37464 L s % Start of user PostScript -0.75 -0.25 -0.987171 -0.329057 MAarrowhead1 % End of user PostScript P p .004 w .21429 .5 m .11905 .5 L s % Start of user PostScript -0.75 0 -1. 0 MAarrowhead1 % End of user PostScript P p .004 w .21429 .59524 m .12393 .62536 L s % Start of user PostScript -0.75 0.25 -0.987171 0.329057 MAarrowhead1 % End of user PostScript P p .004 w .21429 .69048 m .13504 .7433 L s % Start of user PostScript -0.75 0.5 -0.958013 0.638675 MAarrowhead1 % End of user PostScript P p .004 w .21429 .78571 m .14694 .85306 L s % Start of user PostScript -0.75 0.75 -0.926777 0.926777 MAarrowhead1 % End of user PostScript P p .004 w .21429 .88095 m .15714 .95714 L s % Start of user PostScript -0.75 1. -0.9 1.2 MAarrowhead1 % End of user PostScript P p .004 w .30952 .11905 m .26693 .03386 L s % Start of user PostScript -0.5 -1. -0.611803 -1.22361 MAarrowhead1 % End of user PostScript P p .004 w .30952 .21429 m .2567 .13504 L s % Start of user PostScript -0.5 -0.75 -0.638675 -0.958013 MAarrowhead1 % End of user PostScript P p .004 w .30952 .30952 m .24218 .24218 L s % Start of user PostScript -0.5 -0.5 -0.676777 -0.676777 MAarrowhead1 % End of user PostScript P p .004 w .30952 .40476 m .22434 .36217 L s % Start of user PostScript -0.5 -0.25 -0.723607 -0.361803 MAarrowhead1 % End of user PostScript P p .004 w .30952 .5 m .21429 .5 L s % Start of user PostScript -0.5 0 -0.75 0 MAarrowhead1 % End of user PostScript P p .004 w .30952 .59524 m .22434 .63783 L s % Start of user PostScript -0.5 0.25 -0.723607 0.361803 MAarrowhead1 % End of user PostScript P p .004 w .30952 .69048 m .24218 .75782 L s % Start of user PostScript -0.5 0.5 -0.676777 0.676777 MAarrowhead1 % End of user PostScript P p .004 w .30952 .78571 m .2567 .86496 L s % Start of user PostScript -0.5 0.75 -0.638675 0.958013 MAarrowhead1 % End of user PostScript P p .004 w .30952 .88095 m .26693 .96614 L s % Start of user PostScript -0.5 1. -0.611803 1.22361 MAarrowhead1 % End of user PostScript P p .004 w .40476 .11905 m .38166 .02665 L s % Start of user PostScript -0.25 -1. -0.310634 -1.24254 MAarrowhead1 % End of user PostScript P p .004 w .40476 .21429 m .37464 .12393 L s % Start of user PostScript -0.25 -0.75 -0.329057 -0.987171 MAarrowhead1 % End of user PostScript P p .004 w .40476 .30952 m .36217 .22434 L s % Start of user PostScript -0.25 -0.5 -0.361803 -0.723607 MAarrowhead1 % End of user PostScript P p .004 w .40476 .40476 m .33742 .33742 L s % Start of user PostScript -0.25 -0.25 -0.426777 -0.426777 MAarrowhead1 % End of user PostScript P p .004 w .40476 .5 m .30952 .5 L s % Start of user PostScript -0.25 0 -0.5 0 MAarrowhead1 % End of user PostScript P p .004 w .40476 .59524 m .33742 .66258 L s % Start of user PostScript -0.25 0.25 -0.426777 0.426777 MAarrowhead1 % End of user PostScript P p .004 w .40476 .69048 m .36217 .77566 L s % Start of user PostScript -0.25 0.5 -0.361803 0.723607 MAarrowhead1 % End of user PostScript P p .004 w .40476 .78571 m .37464 .87607 L s % Start of user PostScript -0.25 0.75 -0.329057 0.987171 MAarrowhead1 % End of user PostScript P p .004 w .40476 .88095 m .38166 .97335 L s % Start of user PostScript -0.25 1. -0.310634 1.24254 MAarrowhead1 % End of user PostScript P p .004 w .5 .11905 m .5 .02381 L s % Start of user PostScript 0 -1. 0 -1.25 MAarrowhead1 % End of user PostScript P p .004 w .5 .21429 m .5 .11905 L s % Start of user PostScript 0 -0.75 0 -1. MAarrowhead1 % End of user PostScript P p .004 w .5 .30952 m .5 .21429 L s % Start of user PostScript 0 -0.5 0 -0.75 MAarrowhead1 % End of user PostScript P p .004 w .5 .40476 m .5 .30952 L s % Start of user PostScript 0 -0.25 0 -0.5 MAarrowhead1 % End of user PostScript P p .004 w .5 .59524 m .5 .69048 L s % Start of user PostScript 0 0.25 0 0.5 MAarrowhead1 % End of user PostScript P p .004 w .5 .69048 m .5 .78571 L s % Start of user PostScript 0 0.5 0 0.75 MAarrowhead1 % End of user PostScript P p .004 w .5 .78571 m .5 .88095 L s % Start of user PostScript 0 0.75 0 1. MAarrowhead1 % End of user PostScript P p .004 w .5 .88095 m .5 .97619 L s % Start of user PostScript 0 1. 0 1.25 MAarrowhead1 % End of user PostScript P p .004 w .59524 .11905 m .61834 .02665 L s % Start of user PostScript 0.25 -1. 0.310634 -1.24254 MAarrowhead1 % End of user PostScript P p .004 w .59524 .21429 m .62536 .12393 L s % Start of user PostScript 0.25 -0.75 0.329057 -0.987171 MAarrowhead1 % End of user PostScript P p .004 w .59524 .30952 m .63783 .22434 L s % Start of user PostScript 0.25 -0.5 0.361803 -0.723607 MAarrowhead1 % End of user PostScript P p .004 w .59524 .40476 m .66258 .33742 L s % Start of user PostScript 0.25 -0.25 0.426777 -0.426777 MAarrowhead1 % End of user PostScript P p .004 w .59524 .5 m .69048 .5 L s % Start of user PostScript 0.25 0 0.5 0 MAarrowhead1 % End of user PostScript P p .004 w .59524 .59524 m .66258 .66258 L s % Start of user PostScript 0.25 0.25 0.426777 0.426777 MAarrowhead1 % End of user PostScript P p .004 w .59524 .69048 m .63783 .77566 L s % Start of user PostScript 0.25 0.5 0.361803 0.723607 MAarrowhead1 % End of user PostScript P p .004 w .59524 .78571 m .62536 .87607 L s % Start of user PostScript 0.25 0.75 0.329057 0.987171 MAarrowhead1 % End of user PostScript P p .004 w .59524 .88095 m .61834 .97335 L s % Start of user PostScript 0.25 1. 0.310634 1.24254 MAarrowhead1 % End of user PostScript P p .004 w .69048 .11905 m .73307 .03386 L s % Start of user PostScript 0.5 -1. 0.611803 -1.22361 MAarrowhead1 % End of user PostScript P p .004 w .69048 .21429 m .7433 .13504 L s % Start of user PostScript 0.5 -0.75 0.638675 -0.958013 MAarrowhead1 % End of user PostScript P p .004 w .69048 .30952 m .75782 .24218 L s % Start of user PostScript 0.5 -0.5 0.676777 -0.676777 MAarrowhead1 % End of user PostScript P p .004 w .69048 .40476 m .77566 .36217 L s % Start of user PostScript 0.5 -0.25 0.723607 -0.361803 MAarrowhead1 % End of user PostScript P p .004 w .69048 .5 m .78571 .5 L s % Start of user PostScript 0.5 0 0.75 0 MAarrowhead1 % End of user PostScript P p .004 w .69048 .59524 m .77566 .63783 L s % Start of user PostScript 0.5 0.25 0.723607 0.361803 MAarrowhead1 % End of user PostScript P p .004 w .69048 .69048 m .75782 .75782 L s % Start of user PostScript 0.5 0.5 0.676777 0.676777 MAarrowhead1 % End of user PostScript P p .004 w .69048 .78571 m .7433 .86496 L s % Start of user PostScript 0.5 0.75 0.638675 0.958013 MAarrowhead1 % End of user PostScript P p .004 w .69048 .88095 m .73307 .96614 L s % Start of user PostScript 0.5 1. 0.611803 1.22361 MAarrowhead1 % End of user PostScript P p .004 w .78571 .11905 m .84286 .04286 L s % Start of user PostScript 0.75 -1. 0.9 -1.2 MAarrowhead1 % End of user PostScript P p .004 w .78571 .21429 m .85306 .14694 L s % Start of user PostScript 0.75 -0.75 0.926777 -0.926777 MAarrowhead1 % End of user PostScript P p .004 w .78571 .30952 m .86496 .2567 L s % Start of user PostScript 0.75 -0.5 0.958013 -0.638675 MAarrowhead1 % End of user PostScript P p .004 w .78571 .40476 m .87607 .37464 L s % Start of user PostScript 0.75 -0.25 0.987171 -0.329057 MAarrowhead1 % End of user PostScript P p .004 w .78571 .5 m .88095 .5 L s % Start of user PostScript 0.75 0 1. 0 MAarrowhead1 % End of user PostScript P p .004 w .78571 .59524 m .87607 .62536 L s % Start of user PostScript 0.75 0.25 0.987171 0.329057 MAarrowhead1 % End of user PostScript P p .004 w .78571 .69048 m .86496 .7433 L s % Start of user PostScript 0.75 0.5 0.958013 0.638675 MAarrowhead1 % End of user PostScript P p .004 w .78571 .78571 m .85306 .85306 L s % Start of user PostScript 0.75 0.75 0.926777 0.926777 MAarrowhead1 % End of user PostScript P p .004 w .78571 .88095 m .84286 .95714 L s % Start of user PostScript 0.75 1. 0.9 1.2 MAarrowhead1 % End of user PostScript P p .004 w .88095 .11905 m .9483 .0517 L s % Start of user PostScript 1. -1. 1.17678 -1.17678 MAarrowhead1 % End of user PostScript P p .004 w .88095 .21429 m .95714 .15714 L s % Start of user PostScript 1. -0.75 1.2 -0.9 MAarrowhead1 % End of user PostScript P p .004 w .88095 .30952 m .96614 .26693 L s % Start of user PostScript 1. -0.5 1.22361 -0.611803 MAarrowhead1 % End of user PostScript P p .004 w .88095 .40476 m .97335 .38166 L s % Start of user PostScript 1. -0.25 1.24254 -0.310634 MAarrowhead1 % End of user PostScript P p .004 w .88095 .5 m .97619 .5 L s % Start of user PostScript 1. 0 1.25 0 MAarrowhead1 % End of user PostScript P p .004 w .88095 .59524 m .97335 .61834 L s % Start of user PostScript 1. 0.25 1.24254 0.310634 MAarrowhead1 % End of user PostScript P p .004 w .88095 .69048 m .96614 .73307 L s % Start of user PostScript 1. 0.5 1.22361 0.611803 MAarrowhead1 % End of user PostScript P p .004 w .88095 .78571 m .95714 .84286 L s % Start of user PostScript 1. 0.75 1.2 0.9 MAarrowhead1 % End of user PostScript P p .004 w .88095 .88095 m .9483 .9483 L s % Start of user PostScript 1. 1. 1.17678 1.17678 MAarrowhead1 % End of user PostScript P P 0 0 m 1 0 L 1 1 L 0 1 L closepath clip newpath % End of Graphics MathPictureEnd :[font = subsection; inactive; preserveAspect] The phi-Unit Vector: :[font = input; preserveAspect; startGroup] PlotVectorField[{-y,+x}/Sqrt[x^2+y^2], {x,-1,1},{y,-1,1},PlotPoints->9]; :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 282; pictureHeight = 282; endGroup; endGroup] %! %%Creator: Mathematica %%AspectRatio: 1 MathPictureStart %% Graphics /Courier findfont 10 scalefont setfont % Scaling calculations 0.5 0.404657 0.5 0.404657 [ [ 0 0 0 0 ] [ 1 1 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p P % 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 [ arrx arrl div arry arrl div -1 arry mul arrl div arrx arrl div 0 0 ] concat -0.025 0.00625 moveto 0 0 lineto -0.025 -0.00625 lineto fill -0.025 0.00625 moveto 0 0 lineto -0.025 -0.00625 lineto -0.025 0.00625 lineto stroke grestore } def % End of user PostScript p p .004 w .09534 .09534 m .16688 .02381 L s % Start of user PostScript -1. -1. -0.823223 -1.17678 MAarrowhead1 % End of user PostScript P p .004 w .09534 .19651 m .15604 .11558 L s % Start of user PostScript -1. -0.75 -0.85 -0.95 MAarrowhead1 % End of user PostScript P p .004 w .09534 .29767 m .14059 .20719 L s % Start of user PostScript -1. -0.5 -0.888197 -0.723607 MAarrowhead1 % End of user PostScript P p .004 w .09534 .39884 m .11988 .30069 L s % Start of user PostScript -1. -0.25 -0.939366 -0.492536 MAarrowhead1 % End of user PostScript P p .004 w .09534 .5 m .09534 .39884 L s % Start of user PostScript -1. 0 -1. -0.25 MAarrowhead1 % End of user PostScript P p .004 w .09534 .60116 m .07081 .50302 L s % Start of user PostScript -1. 0.25 -1.06063 0.00746437 MAarrowhead1 % End of user PostScript P p .004 w .09534 .70233 m .0501 .61184 L s % Start of user PostScript -1. 0.5 -1.1118 0.276393 MAarrowhead1 % End of user PostScript P p .004 w .09534 .80349 m .03464 .72256 L s % Start of user PostScript -1. 0.75 -1.15 0.55 MAarrowhead1 % End of user PostScript P p .004 w .09534 .90466 m .02381 .83312 L s % Start of user PostScript -1. 1. -1.17678 0.823223 MAarrowhead1 % End of user PostScript P p .004 w .19651 .09534 m .27744 .03464 L s % Start of user PostScript -0.75 -1. -0.55 -1.15 MAarrowhead1 % End of user PostScript P p .004 w .19651 .19651 m .26804 .12497 L s % Start of user PostScript -0.75 -0.75 -0.573223 -0.926777 MAarrowhead1 % End of user PostScript P p .004 w .19651 .29767 m .25262 .2135 L s % Start of user PostScript -0.75 -0.5 -0.611325 -0.708013 MAarrowhead1 % End of user PostScript P p .004 w .19651 .39884 m .2285 .30286 L s % Start of user PostScript -0.75 -0.25 -0.670943 -0.487171 MAarrowhead1 % End of user PostScript P p .004 w .19651 .5 m .19651 .39884 L s % Start of user PostScript -0.75 0 -0.75 -0.25 MAarrowhead1 % End of user PostScript P p .004 w .19651 .60116 m .16452 .50519 L s % Start of user PostScript -0.75 0.25 -0.829057 0.0128292 MAarrowhead1 % End of user PostScript P p .004 w .19651 .70233 m .14039 .61815 L s % Start of user PostScript -0.75 0.5 -0.888675 0.291987 MAarrowhead1 % End of user PostScript P p .004 w .19651 .80349 m .12497 .73196 L s % Start of user PostScript -0.75 0.75 -0.926777 0.573223 MAarrowhead1 % End of user PostScript P p .004 w .19651 .90466 m .11558 .84396 L s % Start of user PostScript -0.75 1. -0.95 0.85 MAarrowhead1 % End of user PostScript P p .004 w .29767 .09534 m .38816 .0501 L s % Start of user PostScript -0.5 -1. -0.276393 -1.1118 MAarrowhead1 % End of user PostScript P p .004 w .29767 .19651 m .38185 .14039 L s % Start of user PostScript -0.5 -0.75 -0.291987 -0.888675 MAarrowhead1 % End of user PostScript P p .004 w .29767 .29767 m .36921 .22614 L s % Start of user PostScript -0.5 -0.5 -0.323223 -0.676777 MAarrowhead1 % End of user PostScript P p .004 w .29767 .39884 m .34291 .30835 L s % Start of user PostScript -0.5 -0.25 -0.388197 -0.473607 MAarrowhead1 % End of user PostScript P p .004 w .29767 .5 m .29767 .39884 L s % Start of user PostScript -0.5 0 -0.5 -0.25 MAarrowhead1 % End of user PostScript P p .004 w .29767 .60116 m .25243 .51068 L s % Start of user PostScript -0.5 0.25 -0.611803 0.0263932 MAarrowhead1 % End of user PostScript P p .004 w .29767 .70233 m .22614 .63079 L s % Start of user PostScript -0.5 0.5 -0.676777 0.323223 MAarrowhead1 % End of user PostScript P p .004 w .29767 .80349 m .2135 .74738 L s % Start of user PostScript -0.5 0.75 -0.708013 0.611325 MAarrowhead1 % End of user PostScript P p .004 w .29767 .90466 m .20719 .85941 L s % Start of user PostScript -0.5 1. -0.723607 0.888197 MAarrowhead1 % End of user PostScript P p .004 w .39884 .09534 m .49698 .07081 L s % Start of user PostScript -0.25 -1. -0.00746437 -1.06063 MAarrowhead1 % End of user PostScript P p .004 w .39884 .19651 m .49481 .16452 L s % Start of user PostScript -0.25 -0.75 -0.0128292 -0.829057 MAarrowhead1 % End of user PostScript P p .004 w .39884 .29767 m .48932 .25243 L s % Start of user PostScript -0.25 -0.5 -0.0263932 -0.611803 MAarrowhead1 % End of user PostScript P p .004 w .39884 .39884 m .47037 .3273 L s % Start of user PostScript -0.25 -0.25 -0.0732233 -0.426777 MAarrowhead1 % End of user PostScript P p .004 w .39884 .5 m .39884 .39884 L s % Start of user PostScript -0.25 0 -0.25 -0.25 MAarrowhead1 % End of user PostScript P p .004 w .39884 .60116 m .3273 .52963 L s % Start of user PostScript -0.25 0.25 -0.426777 0.0732233 MAarrowhead1 % End of user PostScript P p .004 w .39884 .70233 m .30835 .65709 L s % Start of user PostScript -0.25 0.5 -0.473607 0.388197 MAarrowhead1 % End of user PostScript P p .004 w .39884 .80349 m .30286 .7715 L s % Start of user PostScript -0.25 0.75 -0.487171 0.670943 MAarrowhead1 % End of user PostScript P p .004 w .39884 .90466 m .30069 .88012 L s % Start of user PostScript -0.25 1. -0.492536 0.939366 MAarrowhead1 % End of user PostScript P p .004 w .5 .09534 m .60116 .09534 L s % Start of user PostScript 0 -1. 0.25 -1. MAarrowhead1 % End of user PostScript P p .004 w .5 .19651 m .60116 .19651 L s % Start of user PostScript 0 -0.75 0.25 -0.75 MAarrowhead1 % End of user PostScript P p .004 w .5 .29767 m .60116 .29767 L s % Start of user PostScript 0 -0.5 0.25 -0.5 MAarrowhead1 % End of user PostScript P p .004 w .5 .39884 m .60116 .39884 L s % Start of user PostScript 0 -0.25 0.25 -0.25 MAarrowhead1 % End of user PostScript P p .004 w .5 .60116 m .39884 .60116 L s % Start of user PostScript 0 0.25 -0.25 0.25 MAarrowhead1 % End of user PostScript P p .004 w .5 .70233 m .39884 .70233 L s % Start of user PostScript 0 0.5 -0.25 0.5 MAarrowhead1 % End of user PostScript P p .004 w .5 .80349 m .39884 .80349 L s % Start of user PostScript 0 0.75 -0.25 0.75 MAarrowhead1 % End of user PostScript P p .004 w .5 .90466 m .39884 .90466 L s % Start of user PostScript 0 1. -0.25 1. MAarrowhead1 % End of user PostScript P p .004 w .60116 .09534 m .69931 .11988 L s % Start of user PostScript 0.25 -1. 0.492536 -0.939366 MAarrowhead1 % End of user PostScript P p .004 w .60116 .19651 m .69714 .2285 L s % Start of user PostScript 0.25 -0.75 0.487171 -0.670943 MAarrowhead1 % End of user PostScript P p .004 w .60116 .29767 m .69165 .34291 L s % Start of user PostScript 0.25 -0.5 0.473607 -0.388197 MAarrowhead1 % End of user PostScript P p .004 w .60116 .39884 m .6727 .47037 L s % Start of user PostScript 0.25 -0.25 0.426777 -0.0732233 MAarrowhead1 % End of user PostScript P p .004 w .60116 .5 m .60116 .60116 L s % Start of user PostScript 0.25 0 0.25 0.25 MAarrowhead1 % End of user PostScript P p .004 w .60116 .60116 m .52963 .6727 L s % Start of user PostScript 0.25 0.25 0.0732233 0.426777 MAarrowhead1 % End of user PostScript P p .004 w .60116 .70233 m .51068 .74757 L s % Start of user PostScript 0.25 0.5 0.0263932 0.611803 MAarrowhead1 % End of user PostScript P p .004 w .60116 .80349 m .50519 .83548 L s % Start of user PostScript 0.25 0.75 0.0128292 0.829057 MAarrowhead1 % End of user PostScript P p .004 w .60116 .90466 m .50302 .92919 L s % Start of user PostScript 0.25 1. 0.00746437 1.06063 MAarrowhead1 % End of user PostScript P p .004 w .70233 .09534 m .79281 .14059 L s % Start of user PostScript 0.5 -1. 0.723607 -0.888197 MAarrowhead1 % End of user PostScript P p .004 w .70233 .19651 m .7865 .25262 L s % Start of user PostScript 0.5 -0.75 0.708013 -0.611325 MAarrowhead1 % End of user PostScript P p .004 w .70233 .29767 m .77386 .36921 L s % Start of user PostScript 0.5 -0.5 0.676777 -0.323223 MAarrowhead1 % End of user PostScript P p .004 w .70233 .39884 m .74757 .48932 L s % Start of user PostScript 0.5 -0.25 0.611803 -0.0263932 MAarrowhead1 % End of user PostScript P p .004 w .70233 .5 m .70233 .60116 L s % Start of user PostScript 0.5 0 0.5 0.25 MAarrowhead1 % End of user PostScript P p .004 w .70233 .60116 m .65709 .69165 L s % Start of user PostScript 0.5 0.25 0.388197 0.473607 MAarrowhead1 % End of user PostScript P p .004 w .70233 .70233 m .63079 .77386 L s % Start of user PostScript 0.5 0.5 0.323223 0.676777 MAarrowhead1 % End of user PostScript P p .004 w .70233 .80349 m .61815 .85961 L s % Start of user PostScript 0.5 0.75 0.291987 0.888675 MAarrowhead1 % End of user PostScript P p .004 w .70233 .90466 m .61184 .9499 L s % Start of user PostScript 0.5 1. 0.276393 1.1118 MAarrowhead1 % End of user PostScript P p .004 w .80349 .09534 m .88442 .15604 L s % Start of user PostScript 0.75 -1. 0.95 -0.85 MAarrowhead1 % End of user PostScript P p .004 w .80349 .19651 m .87503 .26804 L s % Start of user PostScript 0.75 -0.75 0.926777 -0.573223 MAarrowhead1 % End of user PostScript P p .004 w .80349 .29767 m .85961 .38185 L s % Start of user PostScript 0.75 -0.5 0.888675 -0.291987 MAarrowhead1 % End of user PostScript P p .004 w .80349 .39884 m .83548 .49481 L s % Start of user PostScript 0.75 -0.25 0.829057 -0.0128292 MAarrowhead1 % End of user PostScript P p .004 w .80349 .5 m .80349 .60116 L s % Start of user PostScript 0.75 0 0.75 0.25 MAarrowhead1 % End of user PostScript P p .004 w .80349 .60116 m .7715 .69714 L s % Start of user PostScript 0.75 0.25 0.670943 0.487171 MAarrowhead1 % End of user PostScript P p .004 w .80349 .70233 m .74738 .7865 L s % Start of user PostScript 0.75 0.5 0.611325 0.708013 MAarrowhead1 % End of user PostScript P p .004 w .80349 .80349 m .73196 .87503 L s % Start of user PostScript 0.75 0.75 0.573223 0.926777 MAarrowhead1 % End of user PostScript P p .004 w .80349 .90466 m .72256 .96536 L s % Start of user PostScript 0.75 1. 0.55 1.15 MAarrowhead1 % End of user PostScript P p .004 w .90466 .09534 m .97619 .16688 L s % Start of user PostScript 1. -1. 1.17678 -0.823223 MAarrowhead1 % End of user PostScript P p .004 w .90466 .19651 m .96536 .27744 L s % Start of user PostScript 1. -0.75 1.15 -0.55 MAarrowhead1 % End of user PostScript P p .004 w .90466 .29767 m .9499 .38816 L s % Start of user PostScript 1. -0.5 1.1118 -0.276393 MAarrowhead1 % End of user PostScript P p .004 w .90466 .39884 m .92919 .49698 L s % Start of user PostScript 1. -0.25 1.06063 -0.00746437 MAarrowhead1 % End of user PostScript P p .004 w .90466 .5 m .90466 .60116 L s % Start of user PostScript 1. 0 1. 0.25 MAarrowhead1 % End of user PostScript P p .004 w .90466 .60116 m .88012 .69931 L s % Start of user PostScript 1. 0.25 0.939366 0.492536 MAarrowhead1 % End of user PostScript P p .004 w .90466 .70233 m .85941 .79281 L s % Start of user PostScript 1. 0.5 0.888197 0.723607 MAarrowhead1 % End of user PostScript P p .004 w .90466 .80349 m .84396 .88442 L s % Start of user PostScript 1. 0.75 0.85 0.95 MAarrowhead1 % End of user PostScript P p .004 w .90466 .90466 m .83312 .97619 L s % Start of user PostScript 1. 1. 0.823223 1.17678 MAarrowhead1 % End of user PostScript P P 0 0 m 1 0 L 1 1 L 0 1 L closepath clip newpath % End of Graphics MathPictureEnd :[font = section; inactive; preserveAspect; startGroup] Example 1: Cylindrical Coordinates: You do it in Spherical ;[s] 2:0,0;36,1;59,-1; 2:1,19,14,Times,1,18,0,0,0;1,16,12,Times,1,14,0,0,0; :[font = input; preserveAspect] Clear["Global`*"] :[font = input; preserveAspect; startGroup] Coordinates[Cartesian] :[font = output; output; inactive; preserveAspect; endGroup] {x, y, z} ;[o] {x, y, z} :[font = input; preserveAspect; startGroup] Coordinates[Cylindrical] :[font = output; output; inactive; preserveAspect; endGroup] {r, theta, z} ;[o] {r, theta, z} :[font = input; preserveAspect; startGroup] CoordinatesFromCartesian[{x,y,z},Cylindrical] :[font = output; output; inactive; preserveAspect; endGroup] {(x^2 + y^2)^(1/2), ArcTan[x, y], z} ;[o] 2 2 {Sqrt[x + y ], ArcTan[x, y], z} :[font = input; preserveAspect; startGroup] CoordinatesToCartesian[{r, theta, z},Cylindrical] :[font = output; output; inactive; preserveAspect; endGroup] {r*Cos[theta], r*Sin[theta], z} ;[o] {r Cos[theta], r Sin[theta], z} :[font = input; preserveAspect; startGroup] x2rRule = Thread[ {x,y,z} -> CoordinatesToCartesian[{r, theta, z},Cylindrical] ] x2rRule = x2rRule //Drop[#,-1]& :[font = output; output; inactive; preserveAspect; startGroup] {x -> r*Cos[theta], y -> r*Sin[theta], z -> z} ;[o] {x -> r Cos[theta], y -> r Sin[theta], z -> z} :[font = output; output; inactive; preserveAspect; endGroup; endGroup] {x -> r*Cos[theta], y -> r*Sin[theta]} ;[o] {x -> r Cos[theta], y -> r Sin[theta]} :[font = input; preserveAspect; startGroup] r2xRule = Thread[ {r, theta, z} -> CoordinatesFromCartesian[{x,y,z},Cylindrical] ] r2xRule = r2xRule //Drop[#,-1]& :[font = output; output; inactive; preserveAspect; startGroup] {r -> (x^2 + y^2)^(1/2), theta -> ArcTan[x, y], z -> z} ;[o] 2 2 {r -> Sqrt[x + y ], theta -> ArcTan[x, y], z -> z} :[font = output; output; inactive; preserveAspect; endGroup; endGroup] {r -> (x^2 + y^2)^(1/2), theta -> ArcTan[x, y]} ;[o] 2 2 {r -> Sqrt[x + y ], theta -> ArcTan[x, y]} :[font = input; preserveAspect; startGroup] JacobianDeterminant[{x,y,z},Cartesian] :[font = output; output; inactive; preserveAspect; endGroup] 1 ;[o] 1 :[font = input; preserveAspect; startGroup] JacobianDeterminant[{r,theta,z},Cylindrical] :[font = output; output; inactive; preserveAspect; endGroup] r ;[o] r :[font = input; preserveAspect] Integrate[ 1 JacobianDeterminant[{r,theta,z},Cylindrical] ,{theta,0, 2 Pi} ,{z,0,h} ] :[font = input; preserveAspect; startGroup] Integrate[ 1 JacobianDeterminant[{r,theta,z},Cylindrical] ,{r,0,R} ,{theta,0, 2 Pi} ,{z,0,h} ] :[font = output; output; inactive; preserveAspect; endGroup; endGroup] h*Pi*R^2 ;[o] 2 h Pi R :[font = section; inactive; preserveAspect; startGroup] Example 2: :[font = input; preserveAspect] Clear["Global`*"] :[font = input; preserveAspect] v={y,-x,0}; :[font = input; preserveAspect; startGroup] x2rRule = Thread[ {x,y,z} -> CoordinatesToCartesian[{r, theta, z},Cylindrical] ] x2rRule = x2rRule //Drop[#,-1]& :[font = output; output; inactive; preserveAspect; startGroup] {x -> r*Cos[theta], y -> r*Sin[theta], z -> z} ;[o] {x -> r Cos[theta], y -> r Sin[theta], z -> z} :[font = output; output; inactive; preserveAspect; endGroup; endGroup] {x -> r*Cos[theta], y -> r*Sin[theta]} ;[o] {x -> r Cos[theta], y -> r Sin[theta]} :[font = input; preserveAspect] rUnit={ x,y,0}/Sqrt[x^2+y^2]; phiUnit={-y,x,0}/Sqrt[x^2+y^2]; zUnit={ 0,0,1}; :[font = input; preserveAspect; startGroup] vr= {rUnit,phiUnit,zUnit}.v /.x2rRule //Simplify //PowerExpand :[font = output; output; inactive; preserveAspect; endGroup] {0, -r, 0} ;[o] {0, -r, 0} :[font = input; preserveAspect; startGroup] PlotVectorField[ v[[{1,2}]] ,{x,-1,1},{y,-1,1},PlotPoints->4]; :[font = postscript; PostScript; formatAsPostScript; output; inactive; preserveAspect; pictureLeft = 34; pictureWidth = 182; pictureHeight = 182; endGroup] %! %%Creator: Mathematica %%AspectRatio: 1 MathPictureStart %% Graphics /Courier findfont 10 scalefont setfont % Scaling calculations 0.5 0.32363 0.5 0.32363 [ [ 0 0 0 0 ] [ 1 1 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath [ ] 0 setdash 0 g p P % 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 [ arrx arrl div arry arrl div -1 arry mul arrl div arrx arrl div 0 0 ] concat -0.0666667 0.0166667 moveto 0 0 lineto -0.0666667 -0.0166667 lineto fill -0.0666667 0.0166667 moveto 0 0 lineto -0.0666667 -0.0166667 lineto -0.0666667 0.0166667 lineto stroke grestore } def % End of user PostScript p p .004 w .17637 .17637 m .02381 .32893 L s % Start of user PostScript -1. -1. -1.4714 -0.528595 MAarrowhead1 % End of user PostScript P p .004 w .17637 .39212 m .12552 .54468 L s % Start of user PostScript -1. -0.333333 -1.15713 0.138071 MAarrowhead1 % End of user PostScript P p .004 w .17637 .60788 m .22722 .76044 L s % Start of user PostScript -1. 0.333333 -0.842865 0.804738 MAarrowhead1 % End of user PostScript P p .004 w .17637 .82363 m .32893 .97619 L s % Start of user PostScript -1. 1. -0.528595 1.4714 MAarrowhead1 % End of user PostScript P p .004 w .39212 .17637 m .23956 .22722 L s % Start of user PostScript -0.333333 -1. -0.804738 -0.842865 MAarrowhead1 % End of user PostScript P p .004 w .39212 .39212 m .34127 .44298 L s % Start of user PostScript -0.333333 -0.333333 -0.490468 -0.176198 MAarrowhead1 % End of user PostScript P p .004 w .39212 .60788 m .44298 .65873 L s % Start of user PostScript -0.333333 0.333333 -0.176198 0.490468 MAarrowhead1 % End of user PostScript P p .004 w .39212 .82363 m .54468 .87448 L s % Start of user PostScript -0.333333 1. 0.138071 1.15713 MAarrowhead1 % End of user PostScript P p .004 w .60788 .17637 m .45532 .12552 L s % Start of user PostScript 0.333333 -1. -0.138071 -1.15713 MAarrowhead1 % End of user PostScript P p .004 w .60788 .39212 m .55702 .34127 L s % Start of user PostScript 0.333333 -0.333333 0.176198 -0.490468 MAarrowhead1 % End of user PostScript P p .004 w .60788 .60788 m .65873 .55702 L s % Start of user PostScript 0.333333 0.333333 0.490468 0.176198 MAarrowhead1 % End of user PostScript P p .004 w .60788 .82363 m .76044 .77278 L s % Start of user PostScript 0.333333 1. 0.804738 0.842865 MAarrowhead1 % End of user PostScript P p .004 w .82363 .17637 m .67107 .02381 L s % Start of user PostScript 1. -1. 0.528595 -1.4714 MAarrowhead1 % End of user PostScript P p .004 w .82363 .39212 m .77278 .23956 L s % Start of user PostScript 1. -0.333333 0.842865 -0.804738 MAarrowhead1 % End of user PostScript P p .004 w .82363 .60788 m .87448 .45532 L s % Start of user PostScript 1. 0.333333 1.15713 -0.138071 MAarrowhead1 % End of user PostScript P p .004 w .82363 .82363 m .97619 .67107 L s % Start of user PostScript 1. 1. 1.4714 0.528595 MAarrowhead1 % End of user PostScript P P 0 0 m 1 0 L 1 1 L 0 1 L closepath clip newpath % End of Graphics MathPictureEnd :[font = input; preserveAspect; startGroup] {Div[v,Cartesian],Div[vr,Cylindrical]} :[font = output; output; inactive; preserveAspect; endGroup] {0, 0} ;[o] {0, 0} :[font = input; preserveAspect; startGroup] {Curl[v,Cartesian],Curl[vr,Cylindrical]} :[font = output; output; inactive; preserveAspect; endGroup; endGroup] {{0, 0, -2}, {0, 0, -2}} ;[o] {{0, 0, -2}, {0, 0, -2}} ^*)