You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 865744b
Browse filesBrowse the repository at this point in the historyBrowse files
gamma(a, z) with a second argument is the upper incomplete gamma function
Gamma(a, z) = int_z^oo t^(a - 1) e^(-t) dt, as Mathematica's Gamma[a, z]
and mpmath's gammainc(a, z) are; with one, gamma is still Gamma(x), and a
second argument was a parse error. z^a takes its principal branch, so the
cut is the negative real axis, which keeps the value from above. It is
printed so, in LaTeX as \Gamma(a, z) and in SymPy as uppergamma, and its
derivative in z is -z^(a - 1) e^(-z); a parameter that varies declines. A
whole a >= 1 is (n - 1)! e^(-z) times a polynomial (DLMF 8.4.8), a half is
sqrt(pi) erfc(sqrt(z)) (8.4.6), and Gamma(a, 0) is Gamma(a).
It is evaluated to the working precision for any complex a and z. Where
|z| > 2|a| + 10, in the right half-plane or past (P + 5) ln 10, it is
Legendre's continued fraction (8.9.2) by the modified Lentz algorithm;
elsewhere it is Gamma(a) less the lower one's series (8.7.1), with twice
|z|/ln 10 guard digits and more where the difference shows it cancelled
more; and at a whole a <= 0, where Gamma(a) has a pole, E_1(z) by its
series and the recurrence (8.4.15). It is real exactly where it is real:
for a positive z, and for a whole a >= 1 at any real z. It agrees with
mpmath at 168 points to 1e-90 at a hundred digits and at 54 to 1e-290 at
three hundred, near the poles and on the cut.
Part of #2075.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments