Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45adb31

Browse files
committed
Issue #26114: Remove a reference to 'Numerical Recipes'.
While no copyright violation occurred, the license which 'Numerical Recipes' operates under is not amenable to Python, so to prevent confusion it's easier to simply remove its mention.
1 parent a8b43b5 commit 45adb31

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Modules/mathmodule.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,8 @@ m_lgamma(double x)
400400
Implementations of the error function erf(x) and the complementary error
401401
function erfc(x).
402402
403-
Method: following 'Numerical Recipes' by Flannery, Press et. al. (2nd ed.,
404-
Cambridge University Press), we use a series approximation for erf for
405-
small x, and a continued fraction approximation for erfc(x) for larger x;
403+
Method: we use a series approximation for erf for small x, and a continued
404+
fraction approximation for erfc(x) for larger x;
406405
combined with the relations erf(-x) = -erf(x) and erfc(x) = 1.0 - erf(x),
407406
this gives us erf(x) and erfc(x) for all x.
408407

0 commit comments

Comments
 (0)