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 c73cc68
Browse filesBrowse the repository at this point in the historyBrowse files
Evaluate the incomplete gamma function's series faster (#2079)
Gamma(a, z) by its series is Gamma(a) - gamma(a, z), and Gamma(a) was computed
by Spouge's approximation on every evaluation: six of the nine milliseconds at a
hundred digits. It is remembered now, per order and precision, since a function
the integrator samples at points is asked it at one a for every z. A real a and z
sum the series in real arithmetic, one product and one quotient a term where the
complex arithmetic took nineteen operations, and the logarithm on the cut takes pi
from the cache rather than computing it afresh.
gamma(2.91, -3.3) 9.52 -> 0.92 ms, gamma(1/3, 2) 23.0 -> 2.2 ms,
gamma(1/2 + i, 2 + 3i) 11.8 -> 2.7 ms; the continued fraction and the exponential
integral's series are unchanged. Found by #2075's next integration rule, whose
answers one declined integral sampled three thousand times.
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