summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2019-07-13 15:50:03 (GMT)
committerGitHub <noreply@github.com>2019-07-13 15:50:03 (GMT)
commit014847034bfc67e7b7d7e9e01d664e1e8864be9d (patch)
tree911724b0ee3ed1d0304f0d7443ef7667e3f8fc7b /Modules/mathmodule.c
parente44184749c2fd0921867ea5cd20b8e226c2146c2 (diff)
downloadcpython-014847034bfc67e7b7d7e9e01d664e1e8864be9d.zip
cpython-014847034bfc67e7b7d7e9e01d664e1e8864be9d.tar.gz
cpython-014847034bfc67e7b7d7e9e01d664e1e8864be9d.tar.bz2
Fix inconsequential typo in math.remainder algorithm comments. (#14746)
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 92c40b3..4c1dbbe 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -646,7 +646,7 @@ m_remainder(double x, double y)
Warning: some subtlety here. What we *want* to know at this point is
whether the remainder m is less than, equal to, or greater than half
of absy. However, we can't do that comparison directly because we
- can't be sure that 0.5*absy is representable (the mutiplication
+ can't be sure that 0.5*absy is representable (the multiplication
might incur precision loss due to underflow). So instead we compare
m with the complement c = absy - m: m < 0.5*absy if and only if m <
c, and so on. The catch is that absy - m might also not be