Lines Matching refs:hypot
27 * @summary Tests for {Math, StrictMath}.hypot
88 // Verify hypot(x, 0.0) is close to x over the entire exponent
120 * result of hypot(3*r, 4*r) should be approximately 5*r. (The
148 // and we test that hypot(pcNeighbors[i]) <= hypot(pcNeighbors[i+1])
165 pcNeighborsHypot[j] = Math.hypot(2.0, pcNeighbors[j]);
166 pcNeighborsStrictHypot[j] = StrictMath.hypot(2.0, pcNeighbors[j]);
172 System.err.println("Monotonicity failure for Math.hypot on " +
181 System.err.println("Monotonicity failure for StrictMath.hypot on " +
206 throw new AssertionError("Result of hypot must be greater than " +
218 failures += Tests.testUlpDiff("Math.hypot", x, y,
219 Math.hypot(x, y), expected, ulps);
220 failures += Tests.testUlpDiff("Math.hypot", y, x,
221 Math.hypot(y, x ), expected, ulps);
223 failures += Tests.testUlpDiff("StrictMath.hypot", x, y,
224 StrictMath.hypot(x, y), expected, ulps);
225 failures += Tests.testUlpDiff("StrictMath.hypot", y, x,
226 StrictMath.hypot(y, x), expected, ulps);
239 System.err.println("Testing the hypot incurred "