Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testBinomialOutside (0.12 sec)

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

                    .divide(BigIntegerMath.factorial(n - k));
            assertEquals(expected, BigIntegerMath.binomial(n, k));
          }
        }
      }
    
      public void testBinomialOutside() {
        for (int i = 0; i <= 50; i++) {
          int n = i;
          assertThrows(IllegalArgumentException.class, () -> BigIntegerMath.binomial(n, -1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

            int expectedInt = fitsInInt(expectedBig) ? expectedBig.intValue() : Integer.MAX_VALUE;
            assertEquals(expectedInt, IntMath.binomial(n, k));
          }
        }
      }
    
      public void testBinomialOutside() {
        for (int i = 0; i <= 50; i++) {
          int n = i;
          assertThrows(IllegalArgumentException.class, () -> IntMath.binomial(n, -1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

          for (int n = 70; n <= LongMath.biggestBinomials[k]; n++) {
            assertEquals(BigIntegerMath.binomial(n, k).longValue(), LongMath.binomial(n, k));
          }
        }
      }
    
      public void testBinomialOutside() {
        for (int i = 0; i <= 50; i++) {
          int n = i;
          assertThrows(IllegalArgumentException.class, () -> LongMath.binomial(n, -1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top