Skip to content

Commit

Permalink
MAINT: Fix some comments in loggamma1p.c
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Jun 22, 2024
1 parent af85b85 commit e250b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/loggamma1p/loggamma1p.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e250b67

Please sign in to comment.