BigInteger.Pow Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Pow(BigInteger, Int32) Raises a number to the specified power and returns the result as a BigInteger number.
Pow(Int32, Int32) Raises a number to the specified power and returns the result as a BigInteger number.

Pow(BigInteger, Int32)

Raises a number to the specified power and returns the result as a BigInteger number.
C#
public static BigInteger Pow(
	BigInteger value,
	int exponent
)

Parameters

value  BigInteger
The base.
exponent  Int32
The exponent.

Return Value

BigInteger
A BigInteger that represents value raised to the power exponent.

Exceptions

ArgumentOutOfRangeExceptionexponent is less than zero.

Pow(Int32, Int32)

Raises a number to the specified power and returns the result as a BigInteger number.
C#
public static BigInteger Pow(
	int value,
	int exponent
)

Parameters

value  Int32
The base.
exponent  Int32
The exponent.

Return Value

BigInteger
A BigInteger that represents value raised to the power exponent.

Exceptions

ArgumentOutOfRangeExceptionvalue is less than zero.

-or-

exponent is less than zero.

See Also