GAMMA on the 17bII+

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  17BII & 17BII+ Discounted Payback Period Revisited Tom Neudorfl 8 1,860 11-25-2013, 10:28 AM
Last Post: Don Shepherd
  HP15c continued fraction for Ln(Gamma) Tom Grydeland 0 725 09-30-2013, 05:48 AM
Last Post: Tom Grydeland
  HP Prime emulator: Gamma function Stephan Matthys 28 5,032 08-21-2013, 04:52 PM
Last Post: Namir
  What is the Gamma approximation you use? Namir 21 3,659 08-05-2013, 07:14 AM
Last Post: Namir
  SandMath routine of the week: Inverse Gamma Function Ángel Martin 39 6,428 03-24-2013, 08:19 AM
Last Post: peacecalc
  [wp34s] Incomplete Gamma on the wp34s Les Wright 18 3,435 12-06-2011, 11:07 AM
Last Post: Namir
  Kitchen timer on 17B/17BII/17BII+/19B/19BII/27S y.miyata 1 735 03-04-2010, 12:18 PM
Last Post: Martin Pinckney
  gamma approximation in 48/49/50? Eric Smith 19 3,244 09-25-2009, 08:06 PM
Last Post: hugh steers
  Complex Gamma Function... revisited Ángel Martin 13 2,372 09-22-2009, 08:51 AM
Last Post: Ángel Martin
  12C+ Gamma Gerson W. Barbosa 8 1,803 06-30-2009, 07:51 AM
Last Post: Gerson W. Barbosa

Forum Jump: