The Museum of HP Calculators


Cross Product (short version) for HP-32SII

This program is by Charles L and is used here by permission.

This program is supplied without representation or warranty of any kind. Charles L and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

This returns the cross product C=AxB in the stack in the order x,y,z. Keep in mind that you are prompted for the components of both vectors out of order, so the form <A,B,C>x<D,E,F> should be considered when it prompts you. This uses only 28.5 of resource available. It would be great to see an even shorter one here sometime! Maybe after I get my manual and understand more indepth commands.

Listing

LBL V
INP A
INP E
X
INP D
INP B
X
-
INP C
RCL XD
INP F
RCL XA
-
RCL B
RCL XF
RCL E
RCL XC
-
RTN

Go back to the software library
Go back to the main exhibit hall