summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-01-15 17:38:24 (GMT)
committerBrett Cannon <brett@python.org>2016-01-15 17:38:24 (GMT)
commit45adb3100bd8a3f88c382750b6c4d8d9203cbcd2 (patch)
treeeae67fe59e0bcb850e1bddb11ce9294b5ffcdc52 /Modules/mathmodule.c
parenta8b43b5fc35aa3dd96c31cf35cdcc66036c37a6f (diff)
downloadcpython-45adb3100bd8a3f88c382750b6c4d8d9203cbcd2.zip
cpython-45adb3100bd8a3f88c382750b6c4d8d9203cbcd2.tar.gz
cpython-45adb3100bd8a3f88c382750b6c4d8d9203cbcd2.tar.bz2
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.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 9359eb2..a6cd15a 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -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.