I forgot to show the output of the full program. Here it is:
Quote:
Creating first vector (3, 5, 2)
Creating second vector (1, 9, 7)
The first vector is 6.16441 units long.
The second vector is 11.4455 units long.
Normalizing first vector. It is now (0.486664, 0.811107, 0.324443) and 1 units long.
Normalizing second vector. It is now (0.0873704, 0.786334, 0.611593) and 1 units
long.
vector1 + vector2 = (0.574035, 1.59744, 0.936036)
vector1 - vector2 = (0.399294, 0.0247735, -0.28715)
vector1 cross product vector2 = (0.240947, -0.269294, 0.311814)
vector1 dot product vector2 = 0.878748
Press any key to continue . . .
|
Does anyone know if the data is accurate?