Math<T>.Pow(T, Int32) Method

Raises a value to the specified power..

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static T Pow(
	T value,
	int exponent
)

Parameters

value  T
A value.
exponent  Int32
An integer.

Return Value

T
The value value raised to the power exponent.

Remarks

A NotSupportedException should be thrown if exponent is negative and the operand type does not support division.

See Also