[Python-checkins] cpython (merge 3.5 -> default): Merge for issue #26114

brett.cannon python-checkins at python.org
Fri Jan 15 12:39:13 EST 2016


https://hg.python.org/cpython/rev/8ad701463cd7
changeset:   99904:8ad701463cd7
parent:      99901:32a4e7b337c9
parent:      99903:76eb752e5447
user:        Brett Cannon <brett at python.org>
date:        Fri Jan 15 09:39:06 2016 -0800
summary:
  Merge for issue #26114

files:
  Modules/mathmodule.c |  5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)


diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -400,9 +400,8 @@
    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.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list