[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
Charles Karney added the comment: Thanks for the info. -- ___ Python tracker <https://bugs.python.org/issue43088> ___ ___ Python-bugs-list mailing list Unsub

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
Charles Karney added the comment: Many thanks! Was the 3.9 version of hypot introduced in 3.0? I'm fixing my code to call sqrt(x**2 + y**2) if necessary and I'd like to know what range of versions this version should apply for. --

[issue43088] Regression in math.hypot

2021-01-31 Thread Charles Karney
New submission from Charles Karney : 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 imp