Miscellaneous Programs and Equations 17-11
Cross Product in Vectors
Here is an example showing how to use the program function to calculate the cross
product.
Cross product:
v
1
× v
2
= (YW – ZV )i + (ZU – XW)j + (XV – YU)k
where
v
1
= X i + Y j + Z k
and
v
2
=U i + V j + W k
Program Lines:
(In RPN mode)
Description
Defines the beginning of the rectangular input/display
routine.
Displays or accepts input of X.
Displays or accepts input of Y.
Displays or accepts input of Z.
Goes to R001 to input vectors
Checksum and length: D82E 15
Defines the beginning of the vector–enter routine.
Copies values in X, Y and Z to U, V and W
respectively.
Goes to R001 to input vectors
Checksum and length: B6AF 24