HP Forums

Full Version: GAMMA on the 17bII+
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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