Searched refs:ulp (Results 1 - 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldAndroidMathTest.java36 Assert.assertEquals(message, expected, actual, Math.ulp(expected));
44 Assert.assertEquals(message, expected, actual, Math.ulp(expected));
591 assertTrue("Should return NaN", Double.isNaN(Math.ulp(Double.NaN)));
593 .ulp(Double.POSITIVE_INFINITY), 0D);
595 .ulp(Double.NEGATIVE_INFINITY), 0D);
597 .ulp(0.0), 0D);
599 .ulp(+0.0), 0D);
601 .ulp(-0.0), 0D);
603 .ulp(Double.MAX_VALUE), 0D);
605 .ulp(
[all...]
H A DOldAndroidStrictMathTest.java615 .isNaN(StrictMath.ulp(Double.NaN)));
617 StrictMath.ulp(Double.POSITIVE_INFINITY), 0D);
619 StrictMath.ulp(Double.NEGATIVE_INFINITY), 0D);
621 .ulp(0.0), 0D);
623 .ulp(+0.0), 0D);
625 .ulp(-0.0), 0D);
627 StrictMath.ulp(Double.MAX_VALUE), 0D);
629 StrictMath.ulp(-Double.MAX_VALUE), 0D);
632 .ulp(Double.MIN_VALUE), 0D);
634 .ulp(
[all...]
/libcore/luni/src/main/java/java/lang/
H A DStrictMath.java875 * Returns the argument's ulp (unit in the last place). The size of a ulp of
878 * {@code ulp(-x) == ulp(x)}.
882 * <li>{@code ulp(+0.0) = Double.MIN_VALUE}</li>
883 * <li>{@code ulp(-0.0) = Double.MIN_VALUE}</li>
884 * <li>{@code ulp(+infinity) = infinity}</li>
885 * <li>{@code ulp(-infinity) = infinity}</li>
886 * <li>{@code ulp(NaN) = NaN}</li>
890 * the floating-point value to compute ulp o
893 public static double ulp(double d) { method in class:StrictMath
923 public static float ulp(float f) { method in class:StrictMath
[all...]
H A DMath.java89 * 1 ulp (unit in the last place) of the real result.
107 * ulp (unit in the last place) of the real result.
125 * within 1 ulp (unit in the last place) of the real result.
223 * The returned result is within 1 ulp (unit in the last place) of the real
259 * of the argument. The returned result is within 1 ulp (unit in the last
279 * cancellation of significant digits). The returned result is within 1 ulp
283 * result is within 0.5 ulp of -1, -1.0 is returned.
324 * medium underflow or overflow. The returned result is within 1 ulp (unit
376 * argument. The returned result is within 1 ulp (unit in the last place) of
397 * argument. The returned result is within 1 ulp (uni
942 public static double ulp(double d) { method in class:Math
974 public static float ulp(float f) { method in class:Math
[all...]
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java2718 * For example, {@code new BigDecimal(0.1).ulp()} returns {@code 1E-55}.
2722 public BigDecimal ulp() { method in class:BigDecimal

Completed in 256 milliseconds