From c39162de4a64a9f8c03a474e97a9f2a21ceb9f54 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 15 Jan 2016 09:41:49 -0800 Subject: [PATCH] Issue #26114: Remove mention of 'Numerical Recipes'. --- Modules/mathmodule.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 670e52ddb7..01ed36b213 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -379,9 +379,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. -- 2.50.1