Enter RPN

All Files in dm32/hypotenuse/
Login

All Files in dm32/hypotenuse/

Files in directory dm32/hypotenuse in any check-in


Description

Calculate either the length of a right triangle’s hypotenuse given the lengths of the legs, or one leg given the other and the hypotenuse.

Usage

Hypotenuse: leg ENTER leg XEQ H

Other Leg: hyp ENTER leg XEQ L

Resources

X and Y are consumed, with the answer in X.

Compatibility

Written using the SwissMicros DM32, and directly importable via its statefile feature.

The code can be entered as-is into a hardware HP-32S or better. For Voyager-compatible versions, see this.

See Also

Motivation here, plus other variants.