CE En 270 - Homework #6

Vector Spreadsheet

Write a spreadsheet that does vector computations.  The user should be able to enter the i, j, k components of two vectors, v1 and v2.  Compute the vector difference, vector sum, dot product, and cross product of the two vectors.  Also compute the angle (in degrees) between the two vectors.  In case you have forgotten, suppose

 v1 = a1i + b1j + c1k
 v2 = a2i + b2j + c2k

then

 v1 - v2 = (a1 - a2)i + (b1 - b2)j + (c1 - c2)k
 v1 + v2 = (a1 + a2)i + (b1 + b2)j + (c1 + c2)k
 v1 • v2 = a1a2 + b1b2 + c1c2
 v1 X v2 = (b1c2 - b2c1)i + (a2c1 - a1c2)j + (a1b2 - a2b1)k
 angle between = cos-1((v1•v2)/(|v1| |v2|))
 |v1| = (a12 + b12 + c12)1/2

You may want to use simple orthogonal unit vectors to test your spreadsheet.

Turn in a copy of your spreadsheet showing the results with the following vectors as input:

 v1 = (1, -2, -2)
 v2 = (-1, 3, -2)

Submittal Instructions:

Click here to upload your homework assignment.