Files in directory dm32/hypotenuse from the latest check-in of branch trunk
- hypotenuse.d32
- README.md
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.
- X: leg length on input, answer on output
- Y: hypotenuse (program H) or other leg (program L) on input
- variables: none
- flags: none
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.