(original) (raw)

changeset: 99905:faac8f09020d branch: 2.7 parent: 99902:687f0d4bc188 user: Brett Cannon brett@python.org date: Fri Jan 15 09:41:49 2016 -0800 files: Modules/mathmodule.c description: Issue #26114: Remove mention of 'Numerical Recipes'. diff -r 687f0d4bc188 -r faac8f09020d Modules/mathmodule.c --- a/Modules/mathmodule.c Thu Jan 14 21:57:57 2016 -0800 +++ b/Modules/mathmodule.c Fri Jan 15 09:41:49 2016 -0800 @@ -379,9 +379,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. /brett@python.org