Assignment #6 - 97B

Assignment #6 - 97B



ASSIGNMENT 6
============

E-Mail your assignment to ??? (We will post the exact code later)
Weight 30
Due Date: April, 3rd

In this assignment, you will use C arrays, and write a C code to
do simple statistic functions.

You will be given a set of up to 10 3-dimensional vectors,
Your C- program will compute the average and the standard deviation for
each vector. It should also find all pairs of vectors that are 
"perpendiculars", i.e. Cos(U,V) = 0 .

Recall the equation:

u * v
Cos(u,v) = ---------
|u|*|v|

I.e. the cosine of the angle between two vectors (u and v) is their dot
product divided by the product of their sizes.

Do your computations in double precision, and use the following data for
your program:

8.06 -7.83 7.09
-4.51 -1.45 7.82
-0.68 6.13 -2.90
6.67 8.35 7.02
-4.97 -6.98 -7.07
-9.20 -1.73 -8.96
7.11 -7.78 -9.80
8.91 5.40 -5.96
7.87 -3.83 4.82
0.61 -3.43 3.97