GAMMA on the 17bII+ « Next Oldest | Next Newest »

 ▼ Bob Wang Member Posts: 90 Threads: 22 Joined: Jun 2005 01-15-2005, 03:38 PM 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 GAMMA: (75122.6331530 +80916.6278952×Z +36308.2951477×Z^2 +8687.24529705×Z^3 +1168.92649479×Z^4 +83.8676043424×Z^5 +2.50662827511×Z^6) ÷Z÷(Z+1)÷(Z+2)÷(Z+3)÷(Z+4)÷(Z+5)÷(Z+6) ×(Z+5.5)^(Z+.5) ×EXP(-(Z+5.5)) -GAMMA ```

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

Forum Jump: