(*^ ::[ 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-4, 12, "Courier"; fontset = output, output, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, L-4, 12, "Courier"; fontset = message, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, R32768, L-4, 12, "Courier"; fontset = print, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, L-4, 12, "Courier"; fontset = info, inactive, noPageBreakInGroup, nowordwrap, preserveAspect, groupLikeOutput, M42, N23, B32768, L-4, 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 = subsection; inactive; preserveAspect] Math 225: Calculus III Quiz 1 1/24&26/95 :[font = input; initialization; preserveAspect] *) Needs["Calculus`Advanced`"]; i = {1,0,0}; j = {0,1,0}; k = {0,0,1}; (* :[font = subsubsection; inactive; preserveAspect; startGroup] 1. Find the interior angles, theta, phi, of the parallelogram with vertices {0,0}, {2,1}, {3,4}, and {5,5}. :[font = subsubsection; inactive; preserveAspect] Solution :[font = text; inactive; preserveAspect] The angle theta is the angle between the vectors :[font = input; preserveAspect] a = {2,1} - {0,0}; b = {3,4} - {0,0}; :[font = input; preserveAspect; startGroup] theta = ArcCos[a.b/(Norm[a]Norm[b])] //N :[font = output; output; inactive; preserveAspect; endGroup] 0.4636476090008061156 ;[o] 0.463648 :[font = text; inactive; preserveAspect] The angle phi is just the complementary angle, :[font = input; preserveAspect; startGroup] phi = Pi - theta //N :[font = output; output; inactive; preserveAspect; endGroup] 2.677945044588987122 ;[o] 2.67795 :[font = text; inactive; preserveAspect] phi can also be calculated like theta as the angle between the vectors :[font = input; preserveAspect] c = {0,0} - {2,1}; d = {5,5} - {2,1}; :[font = input; preserveAspect; startGroup] phi = ArcCos[c.d/(Norm[c]Norm[d])] //N :[font = output; output; inactive; preserveAspect; endGroup; endGroup] 2.677945044588987121 ;[o] 2.67795 :[font = subsubsection; inactive; preserveAspect; startGroup] 2. Find a vector that is perpendicular to both of the vectors i + j + 3k and 2i + j + k. :[font = subsubsection; inactive; preserveAspect] Solution :[font = text; inactive; preserveAspect] The cross product Cross[a,b] always gives a vector perpendicular to both a and b. :[font = input; preserveAspect] a = i + j + 3k; b = 2i + j + k; :[font = input; preserveAspect; startGroup] Cross[a,b] :[font = output; output; inactive; preserveAspect; endGroup] {-2, 5, -1} ;[o] {-2, 5, -1} :[font = text; inactive; preserveAspect; endGroup] Note that Cross[b,a] = -Cross[a,b] = {2,-5,1} is also a possiblility. ;[s] 3:0,0;10,1;45,0;70,-1; 2:2,13,9,Times,0,12,0,0,0;1,13,10,Courier,1,12,0,0,0; ^*)