BigInteger.Pow Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

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

ArgumentOutOfRangeException

exponent 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

ArgumentOutOfRangeException

value is less than zero.

-or-

exponent is less than zero.

See Also