< prev index next >
src/java.base/share/classes/java/lang/StrictMath.java
Print this page
@@ -1327,11 +1327,13 @@
* @param y a value
* @return sqrt(<i>x</i><sup>2</sup> +<i>y</i><sup>2</sup>)
* without intermediate overflow or underflow
* @since 1.5
*/
- public static native double hypot(double x, double y);
+ public static double hypot(double x, double y) {
+ return FdLibm.Hypot.compute(x, y);
+ }
/**
* Returns <i>e</i><sup>x</sup> -1. Note that for values of
* <i>x</i> near 0, the exact sum of
* {@code expm1(x)} + 1 is much closer to the true
< prev index next >