Home | History | Annotate | Download | only in math

Lines Matching defs:BigInteger

29 import static java.math.BigInteger.valueOf;
40 import java.math.BigInteger;
52 assertEquals(BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR).longValue(),
60 BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Long.SIZE - i), FLOOR),
79 assertEquals(BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR),
80 BigInteger.valueOf(LongMath.halfPowersOf10[i]));
82 BigInteger nextBigger =
83 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR);
84 assertTrue(nextBigger.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0);
143 BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y));
164 @GwtIncompatible("java.math.BigInteger")
168 BigInteger bigX = BigInteger.valueOf(x);
198 // The BigInteger implementation is tested separately, use it as the reference.
479 BigInteger expectedResult = valueOf(a).add(valueOf(b));
495 BigInteger
511 BigInteger expectedResult = valueOf(a).multiply(valueOf(b));
527 BigInteger expectedResult = valueOf(b).pow(exp);
543 BigInteger expectedBig = BigIntegerMath.factorial(n);
563 BigInteger expectedBig = BigIntegerMath.binomial(n, k);
617 @GwtIncompatible("java.math.BigInteger")
674 * overflow by using BigInteger arithmetic.
677 BigInteger bigX = BigInteger.valueOf(x);
678 BigInteger bigY = BigInteger.valueOf(y);
685 private static boolean fitsInLong(BigInteger big) {