Factorials on the Free42 - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Factorials on the Free42 (/thread-100417.html) |
Factorials on the Free42 - Timespace - 09-27-2006 I understand that all(?) or most HP scientific calculators do fractional factorials using the Gamma function. But the Free42, being an emulator of HP42, which is a scientific calculator, will not. Does the original HP42 do fractional Factorials? For example, 6.2! on the HP33S = 1050.3178 Thanks
Re: Factorials on the Free42 - Gerson W. Barbosa - 09-27-2006
Quote: You can get the same result on both the real HP-42S and Free42:
7.2 shift PROB GAM
Re: Factorials on the Free42 - Timespace - 09-27-2006 Thanks. I was doing the shift PROB N!
Re: Factorials on the Free42 - Timespace - 09-27-2006 No. The 6.2! = 1050.3178 7.2! = 7562.2883
Re: Factorials on the Free42 - Gerson W. Barbosa - 09-27-2006 Hello Timespace, This is a few threads below. Anyway, it's been copied and pasted here for your convenience: Quoting from the HP-15C Owner's Handbook:
Quote: I hope this clarifies the matter a bit :-) Regards, Gerson. ------------- P.S.: One possible reason N! on the HP-42S doesn't behave like x! on other calculators is to keep it backwards compatible with the HP-41 it came from. The HP-41 FACT function did not calculate Gamma(x).
Edited: 27 Sept 2006, 9:33 p.m.
Re: Factorials on the Free42 - Timespace - 09-27-2006 Thanks. So there is no direct way to calculate fractional factorial on the HP42?
You have to use x!=Gamma(x+1)
Re: Factorials on the Free42 - Karl Schneider - 09-27-2006 "Timespace" -- There is no such thing as a "fractional factorial". The Gamma function for non-negative real arguments is a smooth and continuous function that passes through all the discrete points of the factorial function, which is defined only for non-negative integers. By definition, Gamma(x+1) = Integral (0, infinity, txe-tdt), so
Gamma(1) = 0! = 1 and so forth... I'm not certain what the basis of the definitions are, but I surmise that Gamma(x) is defined such that its first discontinuity as x decreases is at x = 0, instead of at x = -1. This effectively separates the behavior of the gamma function into regions of "positive x" and "negative x". Factorials can be defined recursively such that n! = n*(n-1)! -- or alternatively, (n+1)! = (n+1)*n!. Defining 0! = 1 provides the basis for making the definition functional, and equivalent to n! = n*(n-1)*(n-2)*...*1. Gamma is combined with factorial as x! on menuless or limited-menu models in order to conserve keyboard space. Factorial (n!) is separated from Gamma on the HP-42S because the expansive menus make it feasible. Note: Lower-end and business models, such as the HP-10C, HP-12C, and HP-17B* -- don't provide Gamma. These have only n!. -- KS
Edited: 28 Sept 2006, 11:38 p.m.
Re: Factorials on the Free42 - Les Wright - 09-28-2006 The Gamma function is the generalization of the familiar natural number factorial to all complex numbers. It actually is correct to write x! for a noninteger--the notation just means Gamma(x+1). The so-called "normalization" of the factorial function so that x! = Gamma(x+1) dates back to Legendre, and no one seems totally clear why. FYI, the HP48 series will compute factorial for all real arguments. HP49G and beyond does so too, but also includes, I think redundantly, Gamma under Special Functions in the Math menu.
Les
Re: Factorials on the Free42 - Marcus von Cube, Germany - 09-28-2006
Quote: There is a difference! The factorial function on the 49 was carried over from the 48 with identical behaviour (and presumably identical code). It works for real arguments only. GAMMA is a new implementation which is defined for complex arguments also.
Marcus
|