(HP65) Factorial and Gamma Function
|
10-22-2017, 05:28 PM
(This post was last modified: 10-22-2017 05:28 PM by Dieter.)
Post: #6
|
|||
|
|||
RE: (HP65) Factorial and Gamma Function
(10-22-2017 02:40 AM)Gamo Wrote: Your quick modification is very good with more accurate approximation. Here is an improved version. If uses a different technique to prevent overflow during the calculation of xx · e–x. In your program and my first version this is done with two consecutive multiplications of xx/2, while now this term has been rearranged to (x/e)x: Code: LBL A The program also no longer requires R5 and R6, most of the calculation is done on the stack. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)