From e250b6742d31b8cf7f27785d5ad6f1f27bae3db1 Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Sat, 22 Jun 2024 08:16:25 -0400 Subject: [PATCH] MAINT: Fix some comments in loggamma1p.c --- src/loggamma1p/loggamma1p.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/loggamma1p/loggamma1p.c b/src/loggamma1p/loggamma1p.c index 052b25a..dc88240 100644 --- a/src/loggamma1p/loggamma1p.c +++ b/src/loggamma1p/loggamma1p.c @@ -137,9 +137,9 @@ lanczos_sum(double x) This is an edited version of m_lgamma() from the Python 3.11.4 version of Python-3.11.4/mathmodule.c. Python-specific code has - been modified or removed, code related to handle negative a negative - input has been removed, and since it is only used in loggamma1p(), - some error checking has been removed. + been modified or removed, code related to handling a negative + input has been removed, and since this function is only used in + loggamma1p(), some error checking has been removed. */ static double @@ -183,7 +183,7 @@ m_lgamma(double x) // from mpmath import mp // // def loggamma1p(x): -// return mp.log(mp.one + x) +// return mp.log(mp.gamma(mp.one + x)) // // mp.dps = 100 // ts = mp.taylor(loggamma1p, 0, 24)