Gamma
Cooper Hatfield edited this page Nov 18, 2022
·
1 revision
differint.Gamma(z)
Paul Godfrey's Gamma function implementation valid for z complex. This is converted from Godfrey's Gamma.m Matlab file available here. 15 significant digits of accuracy for real z and 13 significant digits for other values.
z
: float or complex
Can be any complex or real number, except the non-positive integers.
>>> Gamma(1)
1
>>> Gamma(4)
6
>>> Gamma(1/2)
1.7724538509055159
>>> Gamma(1+1j)
(0.49801566811835596-0.15494982830181064j)