Vector addition and subtraction:

v1 + v2 = (X + U)i + (Y + V)j + (Z + W)k v2 v1 = (U X)i + (V Y)j + (W Z)k

Cross product:

v1 v2 = (YW ZV )i + (ZU XW)j + (XV YU)k

Dot Product:

D = XU + YV + ZW

Angle between vectors (γ):

D

G = arccos R1 R2

where

v1 = X i + Y j + Z k andv2=U i + V j + W k

The vector displayed by the input routines (LBL P and LBL R) is V1.

15–2Mathematics Programs