Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for pow (0.11 sec)

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

        for (int i = 0; i < LongMath.halfPowersOf10.length; i++) {
          assertEquals(
              BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
              BigInteger.valueOf(LongMath.halfPowersOf10[i]));
        }
        BigInteger nextBigger =
            BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
        assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0);
      }
    
    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/base/Utf8Test.java

      // 18,304
      private static final long EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT =
          // Both bytes are one byte characters
          (long) Math.pow(EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT, 2)
              +
              // The possible number of two byte characters
              TWO_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 2048
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

      // 18,304
      private static final long EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT =
          // Both bytes are one byte characters
          (long) Math.pow(EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT, 2)
              +
              // The possible number of two byte characters
              TWO_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 2048
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isTrue
    import java.io.IOException
    import java.util.Arrays
    import java.util.concurrent.atomic.AtomicInteger
    import kotlin.math.pow
    import kotlin.test.assertFailsWith
    import okhttp3.TestUtil.headerEntries
    import okhttp3.internal.EMPTY_BYTE_ARRAY
    import okhttp3.internal.http2.Http2.FLAG_COMPRESSED
    import okhttp3.internal.http2.Http2.FLAG_END_HEADERS
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/IntMath.java

       * {@code BigInteger.valueOf(b).pow(k).intValue()}. This implementation runs in {@code O(log k)}
       * time.
       *
       * <p>Compare {@link #checkedPow}, which throws an {@link ArithmeticException} upon overflow.
       *
       * @throws IllegalArgumentException if {@code k < 0}
       */
      @GwtIncompatible // failing tests
      public static int pow(int b, int k) {
        checkNonNegative("exponent", k);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/MathTesting.java

      static final ImmutableList<RoundingMode> ALL_SAFE_ROUNDING_MODES =
          ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
    
      // Exponents to test for the pow() function.
      static final ImmutableList<Integer> EXPONENTS =
          ImmutableList.of(0, 1, 2, 3, 4, 7, 10, 15, 20, 25, 40, 70);
    
      /* Helper function to make a Long value from an Integer. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/MathTesting.java

      static final ImmutableList<RoundingMode> ALL_SAFE_ROUNDING_MODES =
          ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
    
      // Exponents to test for the pow() function.
      static final ImmutableList<Integer> EXPONENTS =
          ImmutableList.of(0, 1, 2, 3, 4, 7, 10, 15, 20, 25, 40, 70);
    
      /* Helper function to make a Long value from an Integer. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

       * degenerating it.
       *
       * @since 14.0 (since 11.0 as expectedFalsePositiveProbability())
       */
      public double expectedFpp() {
        return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
      }
    
      /**
       * Returns an estimate for the total number of distinct elements that have been added to this
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LongMath.java

       * Returns {@code b} to the {@code k}th power. Even if the result overflows, it will be equal to
       * {@code BigInteger.valueOf(b).pow(k).longValue()}. This implementation runs in {@code O(log k)}
       * time.
       *
       * @throws IllegalArgumentException if {@code k < 0}
       */
      @GwtIncompatible // TODO
      public static long pow(long b, int k) {
        checkNonNegative("exponent", k);
        if (-2 <= b && b <= 2) {
          switch ((int) b) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  10. common/scripts/kind_provisioner.sh

        python3 - <<EOF
    from ipaddress import ip_network, IPv6Network;
    from itertools import islice;
    
    net = ip_network('$CIDR')
    net_bits = 128 if type(net) == IPv6Network else 32;
    net_len = pow(2, net_bits - net.prefixlen)
    start, end = int(net_len / 4 * 3), net_len
    if net_len > 2000:
      start, end = 1000, 2000
    
    [print(str(ip) + "/" + str(ip.max_prefixlen)) for ip in islice(ip_network('$CIDR').hosts(), start, end)]
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 08 19:12:55 GMT 2024
    - 17.3K bytes
    - Viewed (1)
Back to top