17-12 Miscellaneous Programs and Equations
Example:
Calculate the cross product of two vectors, v1=2i+5j+4k and v2=i-2j+3k
Program Lines:
(In RPN mode)
Description
Defines the beginning of the cross–product routine.
Calculates (YW – ZV), which is the X component.
Calculates (ZU – WX), which is the Y component.
Stores (XV – YU), which is the Z component.
Stores X component.
Stores Y component.
Goes to R001 to input vectors
Checksum and length: 838D 72