(original) (raw)
changeset: 99903:76eb752e5447 branch: 3.5 parent: 99900:bd9d5bc8bc95 user: Brett Cannon brett@python.org date: Fri Jan 15 09:38:24 2016 -0800 files: Modules/mathmodule.c description: 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. diff -r bd9d5bc8bc95 -r 76eb752e5447 Modules/mathmodule.c --- a/Modules/mathmodule.c Fri Jan 15 02:28:59 2016 +0000 +++ b/Modules/mathmodule.c Fri Jan 15 09:38:24 2016 -0800 @@ -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. /brett@python.org