-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
mathsMathematical functionsMathematical functionsregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version
Description
The point of the hypot function is to avoid underflow and overflow, however the implementation of the vararg method introduced with PR #25571 defeats this purpose:
julia> hypot(1e200, 0, 0)
Inf
julia> hypot(1e-300, 0, 0)
0.0Instead in Julia 0.6 it gives the correct result:
ulia> hypot(1e200, 0, 0)
1.0e200
julia> hypot(1e-300, 0, 0)
1.0e-300Edit: I've just seen this was already pointed out in #25571 (comment)
Metadata
Metadata
Assignees
Labels
mathsMathematical functionsMathematical functionsregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version