[New-bugs-announce] [issue43088] Regression in math.hypot
Charles Karney
report at bugs.python.org
Sun Jan 31 17:33:45 EST 2021
New submission from Charles Karney <charles at karney.com>:
It would be nice if math.hypot had the property
If
0 < y1 < y2
then
math.hypot(x, y1) <= math.hypot(x, y2)
This is not the case in python3 with
x = 0.6102683302836215
y1 = 0.7906090004346522
y2 = y1 + 1e-16
python2's implementation of math.hypot is OK with these inputs.
----------
components: Library (Lib)
files: hypot_bug.py
messages: 386043
nosy: cffk
priority: normal
severity: normal
status: open
title: Regression in math.hypot
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49783/hypot_bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43088>
_______________________________________
More information about the New-bugs-announce
mailing list