HP Forums
GAMMA on the 17bII+ - 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: GAMMA on the 17bII+ (/thread-67773.html)

GAMMA on the 17bII+ - Bob Wang - 01-15-2005

OK, here’s another in the category of “Why even bother?” Eddie’s post on “L, G, and some trig functions” inspired me to implement GAMMA on the 17bII+.

Victor T. Toth’s page on “Calculators and the Gamma Function” is an excellent resource, and I’ve used his listing of the Lanczos approximation.

ONLY valid for POSITIVE values of z. The SIN identity for negative values of z COULD be used IF the 17bII+ had a built-in SIN function. Coding the extra steps to calculate SIN results in the now familiar overflow condition of GAMMA being returned as being 0.

Pretty simple, pretty accurate for positive z, pretty useless ;-)

Bob Wang

Eddie Shore’s post on “L, G, and some trig functions”

Calculators and the Gamma Function