(DM42) Gamma function for complex values
|
04-10-2023, 03:52 PM
Post: #3
|
|||
|
|||
RE: (DM42) Gamma function for complex values
Minor update, correct files attachef
Gamma function for complex values s = x +iy for DM42, Free42 Motivation: The GAMMA function only accept real values. Uses Bernoulli coefficients, requires the program B2n, see earlier post for details. and reflection formula for x< 0.5 Accurate to 30 digits, (32 for "small" imaginary values). Requires the function B2n, included below. Alternatively , for speed increase, temporarily insert a STOP at line 52, run with e.g (1 i1) then do a manual STO "B34", remove the STOP and change line 52 XEQ "B2N" to 52 RCL "B34" If somewhat reduced accuracy , say 16 digis, change line 41 from 34 to 18 raw file included With USB power calculation time is approx 0.16s (0.08s with precomputed table) Compare accuracy with e.g. gamma function at http://www.wolframalpha.com DM42: 0.5 i0.5 gamma --> 0.8181639995417473940777488735553224 - 0.7633138287139826166702967877608994 i WolframAlpha: gamma(0.5 + i*0.5) 0.8181639995417473940777488735553249 - 0.7633138287139826166702967877609006 i 2023-04-10 skai Code:
brgds 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)