Skip to main content

Module lgamma

Module lgamma 

Source

FunctionsΒ§

apply_sign_and_sum πŸ”’
apply_sign_and_sum_quick πŸ”’
f_lgamma
Computes log(gamma(x))
lgamma_0p5 πŸ”’
lgamma_0p5_to_1 πŸ”’
lgamma_1_to_4 πŸ”’
lgamma_4_to_12 πŸ”’
lgamma_around_2 πŸ”’
due to log(x) leading terms cancellation happens around 2, hence we’re using different approximation around LogGamma(2). Coefficients are ill-conditioned here so Minimal Newton form is used
lgamma_core πŸ”’
stirling_accurate πŸ”’