Enter RPN

Files in dm32/hypotenuse/ of trunk
Login

Files in dm32/hypotenuse/ of trunk

Files in directory dm32/hypotenuse from the latest check-in of branch trunk


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.