Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Square (7.19 sec)

  1. android/guava-tests/test/com/google/common/math/LongMathTest.java

      public void testSqrtExactMatchesFloorOrThrows() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          long sqrtFloor = LongMath.sqrt(x, FLOOR);
          // We only expect an exception if x was not a perfect square.
          boolean isPerfectSquare = (sqrtFloor * sqrtFloor == x);
          try {
            assertEquals(sqrtFloor, LongMath.sqrt(x, UNNECESSARY));
            assertTrue(isPerfectSquare);
          } catch (ArithmeticException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

      public void testSqrtExactMatchesFloorOrThrows() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          long sqrtFloor = LongMath.sqrt(x, FLOOR);
          // We only expect an exception if x was not a perfect square.
          boolean isPerfectSquare = (sqrtFloor * sqrtFloor == x);
          try {
            assertEquals(sqrtFloor, LongMath.sqrt(x, UNNECESSARY));
            assertTrue(isPerfectSquare);
          } catch (ArithmeticException e) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top