Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Culp (0.13 sec)

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

        }
      }
    
      @GwtIncompatible // #trueLog2, Math.ulp
      public void testLog2Accuracy() {
        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          double dmLog2 = DoubleMath.log2(d);
          double trueLog2 = trueLog2(d);
          assertTrue(Math.abs(dmLog2 - trueLog2) <= Math.ulp(trueLog2));
        }
      }
    
      public void testLog2SemiMonotonic() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/DoubleMath.java

       * </ul>
       *
       * <p>The computed result is within 1 ulp of the exact result.
       *
       * <p>If the result of this method will be immediately rounded to an {@code int}, {@link
       * #log2(double, RoundingMode)} is faster.
       */
      public static double log2(double x) {
        return log(x) / LN_2; // surprisingly within 1 ulp according to tests
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      @GwtIncompatible // #trueLog2, Math.ulp
      public void testLog2Accuracy() {
        for (double d : POSITIVE_FINITE_DOUBLE_CANDIDATES) {
          double dmLog2 = DoubleMath.log2(d);
          double trueLog2 = trueLog2(d);
          assertTrue(Math.abs(dmLog2 - trueLog2) <= Math.ulp(trueLog2));
        }
      }
    
      public void testLog2SemiMonotonic() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
Back to top