/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }
/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }
/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }
/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }
/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }
/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }
/** * Returns a {@code BigInteger} whose value is {@code pow(this, exp)}. * * @throws ArithmeticException if {@code exp < 0}. */ public BigInteger pow(int exp) { if (exp < 0) { throw new ArithmeticException("exp < 0: " + exp); } return new BigInteger(BigInt.exp(getBigInt(), exp)); }