Applying the Formula
Lets see how close my guess is:
- The two vectors are represented by:
- f = (4, 3, 2)T
- g = (-1, 4, 4)T
- The lengths are:
- | f |2 = (4, 3, 2)T · (4, 3, 2)T = 16 + 9 + 4 = 29
- | g |2 = (-1, 4, 4)T · (-1, 4, 4)T = 1 + 16 + 16 = 33
- The normalized vectors are:
- fu =
(4, 3, 2)T / 29
- gu =
(-1, 4, 4)T / 33
- The dot product is:
- fu · gu =
(4, 3, 2)T · (-1, 4, 4)T / (29 33)
- = (-4 + 12 + 8)/(29 33)
= 16 / (29 33)
= 0.51721
- The angle is:
- cos θ = 0.51721
- θ = arc cos 0.51721
= 58.855°
Not too far off from my guess.