Searched refs:hypot (Results 1 - 12 of 12) sorted by relevance

/openjdk7/jdk/src/share/native/java/lang/fdlibm/src/
H A Dw_hypot.c28 * wrapper hypot(x,y)
35 double hypot(double x, double y)/* wrapper hypot */ function
37 double hypot(x,y) /* wrapper hypot */
48 return __kernel_standard(x,y,4); /* hypot overflow */
/openjdk7/langtools/test/tools/apt/Basics/
H A DAggregate.java32 private static double hypot(double Berkeley, double SantaCruz) { method in class:Aggregate
/openjdk7/jdk/test/java/lang/Math/
H A DHypotTests.java27 * @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 mus
[all...]
/openjdk7/jdk/src/share/native/java/lang/fdlibm/include/
H A Djfdlibm.h60 #define hypot jhypot macro
H A Dfdlibm.h147 extern double hypot __P((double, double));
/openjdk7/jdk/src/share/classes/java/lang/
H A DMath.java1160 public static double hypot(double x, double y) { method in class:Math
1161 return StrictMath.hypot(x, y);
H A DStrictMath.java58 * {@code hypot}, {@code expm1}, and {@code log1p}.
1131 public static native double hypot(double x, double y); method in class:StrictMath
/openjdk7/jdk/src/share/classes/sun/java2d/pisces/
H A DPiscesRenderingEngine.java214 * the major axes and the hypot term ends up being an
219 * the hypot term contains a part which resolves to the
231 double hypot = Math.sqrt(EB*EB + (EA-EC)*(EA-EC));
233 double widthsquared = ((EA + EC + hypot)/2.0);
H A DStroker.java896 final float hypot = (float) sqrt(x12 * x12 + y12 * y12);
897 final float cos = x12 / hypot;
898 final float sin = y12 / hypot;
/openjdk7/jdk/src/share/demo/jfc/TransparentRuler/transparentruler/
H A DRuler.java92 float a = (float) Math.hypot(h, w);
/openjdk7/jdk/src/share/classes/sun/java2d/
H A DSunGraphics2D.java1074 * the major axes and the hypot term ends up being an
1079 * the hypot term contains a part which resolves to the
1090 double hypot = Math.sqrt(EB*EB + (EA-EC)*(EA-EC));
1093 widthsquared = ((EA + EC + hypot)/2.0);
/openjdk7/jdk/test/java/lang/StrictMath/
H A DHypotTests.java27 * @summary Tests for StrictMath.hypot
33 * hold for any hypot implementation, including the FDLIBM-based one
34 * required for StrictMath.hypot. Therefore, the test cases in
36 * StrictMath versions of hypot. The role of this test is to verify
37 * that the FDLIBM hypot algorithm is being used by running golden
38 * file tests on values that may vary from one conforming hypot
46 return Tests.test("StrictMath.hypot(double)", input1, input2,
47 StrictMath.hypot(input1, input2), expected);

Completed in 76 milliseconds