Skip to main content

ln_gamma_complex

Function ln_gamma_complex 

Source
pub fn ln_gamma_complex(z: Complex<f64>) -> Complex<f64>
Expand description

ln Γ(z) for complex z away from the poles: the recurrence Γ(z) = Γ(z + N)/(z(z+1)…) moves the argument to |z| ≥ 15, where Stirling’s series with eight terms is accurate to rounding. (The imaginary part is determined only modulo 2π, which is all FFTLog needs.)