< prev index next >

src/java.base/share/classes/java/lang/StrictMath.java

Print this page

        

*** 1327,1337 **** * @param y a value * @return sqrt(<i>x</i><sup>2</sup>&nbsp;+<i>y</i><sup>2</sup>) * without intermediate overflow or underflow * @since 1.5 */ ! public static native double hypot(double x, double y); /** * Returns <i>e</i><sup>x</sup>&nbsp;-1. Note that for values of * <i>x</i> near 0, the exact sum of * {@code expm1(x)}&nbsp;+&nbsp;1 is much closer to the true --- 1327,1339 ---- * @param y a value * @return sqrt(<i>x</i><sup>2</sup>&nbsp;+<i>y</i><sup>2</sup>) * without intermediate overflow or underflow * @since 1.5 */ ! public static double hypot(double x, double y) { ! return FdLibm.Hypot.compute(x, y); ! } /** * Returns <i>e</i><sup>x</sup>&nbsp;-1. Note that for values of * <i>x</i> near 0, the exact sum of * {@code expm1(x)}&nbsp;+&nbsp;1 is much closer to the true
< prev index next >