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 2be40ba
Browse filesBrowse the repository at this point in the historyBrowse files
Sum the incomplete gamma function's lower series as DLMF 8.7.3 in the left half-plane (#2088)
Gamma(a) - gamma(a, z) summed gamma(a, z) as z^a e^(-z) sum_k z^k/(a)_(k + 1) (DLMF 8.7.1)
everywhere. On the negative axis its terms alternate, are e^|z| in size and sum to e^(-|z|), so
twice |z|/ln 10 guard digits were carried, and at that precision Gamma(a) was computed afresh:
Gamma(1/3, -143) took 9.6 s, Gamma(1/2, -100 + 5i) 5.6 s, Gamma(-5/2, -60) 2.4 s. In the left
half-plane it is now z^a sum_k (-z)^k/(k! (a + k)) (DLMF 8.7.3), as E_1 already was, whose terms
are of one sign on that axis and which loses (|z| + Re z)/ln 10 digits: 6 ms, 9 ms and 6 ms.
The large guard had been hiding two defects on the cut, where each part of the value should be
accurate to its own size:
- z^a was e^(a ln|z| + i a pi) with a pi rounded, so cos(pi/2) was 10^(-W) where it is 0. Times
e^143, that was the real part of Gamma(1/2, -143), which is sqrt(pi). The angle is reduced
exactly before pi multiplies it, and is exactly 0 at a half-whole a.
- Past (P + 5) ln 10 the continued fraction, whose coefficients are real there, gives
e^(i pi a) times a real function, the mean of the two sides. It falls short of the value from
above by -i e^(i pi a) sin(pi a) Gamma(a). That is below the precision of the modulus, but it is
the whole of the real part at a half-whole a and of the imaginary part at a = -n. On master
Gamma(1/2, -300)'s real part was 3e13 times sqrt(pi), Gamma(11/2, -300)'s 1.6e25 times
Gamma(11/2), and Gamma(-3, -300)'s imaginary part 9e4 times pi/6.
Checked part by part against mpmath at 300-400 digits on 320 points: 16 orders, half-whole,
whole, complex and odd-denominator ones among them, at 20 points of the left half-plane
including both sides of the threshold. Every part agrees to 1e-97 of its own size. On master, 18 of
the 80 cases past the threshold had a part wrong, by up to 1e113 times its size. The grid took
48.4 s on master and 3.4 s here.
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