Vector addition and subtraction:
Cross product:
v
1
Dot Product:
Angle between vectors ( ):
where
v
= X i + Y j + Z k
1
and
v
= U i + V j + W k
2
The vector displayed by the input routines (LBL P and LBL R) is V
15–2
Mathematics Programs
v
+ v
= ( X + U ) i + ( Y + V ) j + ( Z + W ) k
1
2
v
– v
= ( U – X ) i + ( V – Y ) j + ( W – Z ) k
2
1
v
= ( YW – ZV ) i + ( ZU – XW ) j + ( XV – YU ) k
2
D = XU + YV + ZW
G = arccos
D
R
R
1
2
.
1