Big Integer.Modular Pow(Big Integer, Big Integer, Big Integer) Method
Raises a number to a power modulo another number.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
value raised to the power exponent modulo modulus.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static BigInteger ModularPow(
BigInteger value,
BigInteger exponent,
BigInteger modulus
)
Parameters
- value BigInteger
- The number to raise to a power.
- exponent BigInteger
- The exponent.
- modulus BigInteger
- The modulus.
Return Value
BigIntegervalue raised to the power exponent modulo modulus.