]> granicus.if.org Git - python/commitdiff
Issue #26114: Remove a reference to 'Numerical Recipes'.
authorBrett Cannon <brett@python.org>
Fri, 15 Jan 2016 17:38:24 +0000 (09:38 -0800)
committerBrett Cannon <brett@python.org>
Fri, 15 Jan 2016 17:38:24 +0000 (09:38 -0800)
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.

Modules/mathmodule.c

index 9359eb2b3a0f6ad71c663b128b48c9a0edb854fc..a6cd15aa08f67bfc74985ddcde400a536cc0a750 100644 (file)
@@ -400,9 +400,8 @@ m_lgamma(double x)
    Implementations of the error function erf(x) and the complementary error
    function erfc(x).
 
-   Method: following 'Numerical Recipes' by Flannery, Press et. al. (2nd ed.,
-   Cambridge University Press), we use a series approximation for erf for
-   small x, and a continued fraction approximation for erfc(x) for larger x;
+   Method: we use a series approximation for erf for small x, and a continued
+   fraction approximation for erfc(x) for larger x;
    combined with the relations erf(-x) = -erf(x) and erfc(x) = 1.0 - erf(x),
    this gives us erf(x) and erfc(x) for all x.