Trust checks for the complex Stirling formula #
- Known value. At
w = ½,Γ(1) = 1gives√(2π) exp(f(½) + μ(½)) = 1(stir_half). - The remainder is needed. Without
μthe formula fails atw = ½: it would say√π e^{−½} = 1, that isπ = e(not_Gamma_half_add_without_mu). - The midpoint shift is needed. With
Γ(w)in place ofΓ(w + ½)the formula fails atw = ½, sinceΓ(½) = √π ≠ 1(not_Gamma_without_half).
scripts/asymptotics/stirling_check.py compares μ(w) with log Γ(w + ½) − f(w) − ½ log 2π and
with the bound norm_stirMu_le at complex points (numerical evidence).
½ lies in the slit plane.
Wrong input fails: no remainder. Γ(w + ½) = √(2π) exp(w log w − w) is false at w = ½:
it would give √π e^{−½} = 1, i.e. π = e.
Wrong input fails: no midpoint shift. Γ(w) = √(2π) exp(f(w) + μ(w)) is false at
w = ½, since Γ(½) = √π while the right side is Γ(1) = 1.