(DM42) Gamma function for complex values
|
04-03-2023, 08:57 AM
(This post was last modified: 04-03-2023 04:12 PM by Gjermund Skailand.)
Post: #1
|
|||
|
|||
(DM42) Gamma function for complex values
Gamma function for complex values s = x +iy for DM42, Free 42
Motivation: The GAMMA function only accept real values. Uses Bernoulli coefficients, requires the program B2n, see earlier post. and reflection formula for x< 0.5 Accurate to 30 digits, (32 for "small" imaginary values). For significant speed increase, pre-calculate and recall the Bernoulli coefficients (line 35). If, say only 10-12 digits is needed, then reduce N from 42 to 15 (line 42),. Compare accuracy with e.g. gamma function at http://www.wolframalpha.com raw file included Code:
inspired by JM Baillard, https://hp41programs.yolasite.com Thanks to Joe Horn for small correction. best regards Gjermund |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(DM42) Gamma function for complex values - Gjermund Skailand - 04-03-2023 08:57 AM
RE: (DM42) Gamma function for complex values - Gjermund Skailand - 04-10-2023, 11:12 AM
RE: (DM42) Gamma function for complex values - Gjermund Skailand - 04-10-2023, 03:52 PM
|
User(s) browsing this thread: 1 Guest(s)