Keyboard Access:x x!HP48S: [alpha] LS-DEL MTH PROB HP48G: [alpha] LS-DEL MTH NXT PROB HP49/50: [alpha] RS-2 LS-MTH NXT PROBFactorial function, postfix notation.
Definition: n! = n(n-1)(n-2)(n-3)...(3)(2)(1)
Example: 5! = 5×4×3×2×1 = 120
Note: Although the gamma function can be calculated using factorials by the relation (n-1)! = GAMMA(n), the HP49/50 has a built-in function that handles complex inputs (unlike the factorial function) and simplifies to exact symbolic answers when possible (unlike ).
A prefix-notation version of is available, called . is functionally identical to .
HP49/50 finds exact answers for any integer, but large inputs take a long time to calculate:250! - 0:02.5 (2.5 seconds) 500! - 0:12.4 750! - 0:31.7 1000! - 1:01.2 2000! - 4:55.1 (almost 5 minutes)Real inputs, however, are very fast:7.000! - 0.031 sec 253.119! - 0.086 sec 253.120! - Overflow(Timings done on an HP49. The HP49G+/50G is faster than the HP49G.)
HP49/50 maximum integer input: 9999 (result has 35656 digits; takes over 3 hours on the HP49G and just under 1.5 hours on the HP50g); any integer above this generates the “Integer too large” error. If exact factorials larger than this are needed (???), then obtain the ExtraFunc49+ library from www.hpcalc.org. It calculates 9999! exactly in 1 minute, and has no input limit.