diff options
author | Raymond Hettinger <python@rcn.com> | 2008-05-29 08:38:23 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-05-29 08:38:23 (GMT) |
commit | 2a9179ac73fe0adbce84b55a93e7f966bd8c34cd (patch) | |
tree | 665c4f2ecd1f941086ef1581a159cf23391ddaac | |
parent | d0b592f8e8409a4987932a3c7e021e241a090a7d (diff) | |
download | cpython-2a9179ac73fe0adbce84b55a93e7f966bd8c34cd.zip cpython-2a9179ac73fe0adbce84b55a93e7f966bd8c34cd.tar.gz cpython-2a9179ac73fe0adbce84b55a93e7f966bd8c34cd.tar.bz2 |
Fix two typos.
-rw-r--r-- | Modules/mathmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index e9f0a22..dbe49bd 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -318,7 +318,7 @@ FUNC1(tanh, tanh, 0, value semantics across iterations (i.e. handling -Inf + Inf). Note 2: No provision is made for intermediate overflow handling; - therefore, sum([1e+308, 1e-308, 1e+308]) returns result 1e+308 while + therefore, sum([1e+308, 1e-308, 1e+308]) returns 1e+308 while sum([1e+308, 1e+308, 1e-308]) raises an OverflowError due to the overflow of the first partial sum. @@ -466,7 +466,7 @@ math_sum(PyObject *self, PyObject *seq) } /* Little dance to allow half-even rounding across multiple partials. Needed so that sum([1e-16, 1, 1e16]) will round-up to two instead - of down to zero (the 1e16 makes the 1 slightly closer to two). */ + of down to zero (the 1e-16 makes the 1 slightly closer to two). */ if (n > 0 && ((lo < 0.0 && p[n-1] < 0.0) || (lo > 0.0 && p[n-1] > 0.0))) { y = lo * 2.0; |