Post Reply 
(HP71B) Modern GAMMA formula for Forth or ASM?
08-04-2024, 11:48 PM (This post was last modified: 08-04-2024 11:58 PM by John Keith.)
Post: #4
RE: (HP71B) Modern GAMMA formula for Forth or ASM?
More information on Stirling's approximation can be found here and here. More details here under "Implementation". Assuming that a reasonable number of terms are sufficient for 12-digit accuracy, it would be faster and easier to use in-line constants for the coefficients in your code.

The HP 49 and 50 have the Gamma function for real and complex arguments. I haven't tried to examine the internal code myself but I would guess that it is rather involved.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (HP71B) Modern GAMMA formula for Forth or ASM? - John Keith - 08-04-2024 11:48 PM



User(s) browsing this thread: 4 Guest(s)