jrpn
jrpn copied to clipboard
JRPN Gamma function with negative integer numbers not returning infinity
The n! (Factorial) function of the HP-15C computes the Gamma of (n+1) for fractional and negative numbers. The Gamma of negative integers (eg -3) is infinity and displays an out-of-range blinking -9.99999999E99 on the HP-15C. See https://en.wikipedia.org/wiki/Gamma_function.
However JRPN15C displays a finite number (eg -3! -> 6.41E15).