Home | History | Annotate | Download | only in math

Lines Matching defs:binomial

90       assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.BIGGEST_BINOMIALS[k], k)));
92 || !fitsInLong(BigIntegerMath.binomial(LongMath.BIGGEST_BINOMIALS[k] + 1, k)));
97 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k)));
121 // Throws an ArithmeticException if "the simple implementation" of binomial coefficients overflows
497 // Depends on the correctness of BigIntegerMath.binomial.
501 BigInteger expectedBig = BigIntegerMath.binomial(n, k);
503 assertEquals(expectedLong, LongMath.binomial(n, k));
511 LongMath.binomial(n, -1);
515 LongMath.binomial(n, n + 1);
524 LongMath.binomial(n, 0);