Correct the calculation in Math.hypot().

This commit is contained in:
Davin McCall 2017-12-07 16:25:01 +00:00 committed by Alexey Andreev
parent e569eaa8a6
commit 28212f70ff

View File

@ -219,7 +219,7 @@ public final class TMath extends TObject {
}
public static double hypot(double x, double y) {
return x * x + y * y;
return sqrt(x * x + y * y);
}
public static double expm1(double x) {