Maple Lab 0 (Spring 2007 Math 251 Sections 05-07)
Exercises
Remember that even though this lab will not count toward your final grade, you must turn it in!
Note: Use appropriate colors and plot options to make your plots look nice. The appearance of
you lab will be factored into your grade. You may add execution groups if you need more.
Please delete unused execution groups.
| > |
1. Create vectors <1,0,1> and <1,-2,0> give them the names "a" and "b".
| > |
| > |
1(a). Compute the dot product of "a" and "b" and find the cross product
of "a" and "b" and call it "c". Then compute the projection of "a"
along "b" (
) using Maple.
| > |
| > |
| > |
1(b). Plot "a", "b", and "c" together along with the parallelogram which
is spanned by "a" and "b". Use different colors to make your plot
look nice.
| > |
1(c). Define a function called "normalize" which takes in a vector as
input and outputs the same vector normalized. Then use your
function to normalize "a".
| > |
| > |
2. Define "Seqn" to be the equation of the sphere whose center is (1,2,3)
and radius is 2. Also, define "XYplane" to be the equation of the XY-plane.
| > |
| > |
2(a). Plot this sphere and the XY-plane in the same window.
| > |
| > |
| > |
2(b). Use the "solve" command to solve "Seqn" for the variable "z". Notice
there are 2 solutions. Find a Maple command to retrieve each of these
solutions from the set.
| > |
| > |
| > |
2(c). Go back (if necessary) to part (b) and assign names to each part of the
solution. Then graph the upper-half of the sphere together with the XY-plane.
| > |
| > |
3. Let P=(1,2,0), Q=(1,-1,0), and R=(-1,-1,-2). Define "u" to be the vector from
P to Q and define "v" to be the vector from P to R.
| > |
| > |
| > |
3(a). Define the cross product of "u" and "v" to be "n". Then define the equation
of the plane containing the points P, Q, and R to be "planeEqn".
| > |
| > |
3(b). Define a vector function whose graph is the line which passes through the point P
and is perpendicular to the plane defined in part (a). Call this function "nLine".
| > |
3(c). Then plot "planeEqn", "nLine" and the vectors "u", "v", and "n" all together in
the same window. Again, use different colors to make you plot look nice.
| > |
| > |
| > |
| > |