BigInteger.modPow
Class Overview | Class Members |
This Package |
All Packages
public BigInteger modPow( BigInteger exponent,
BigInteger m )
Description
Returns a BigInteger whose value is (this ** exponent) mod m. (If
exponent == 1, the returned value is (this mod m). If exponent < 0,
the returned value is the modular multiplicative inverse of
(this ** -exponent).) Throws an ArithmeticException if m <= 0.