Math<T>.Pow Method

Definition

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

Overload List

Pow(T, T) Returns a number raised to the specified power.
Pow(T, Int32) Raises a value to the specified power..

Pow(T, T)

Returns a number raised to the specified power.
C#
public static T Pow(
	T value,
	T exponent
)

Parameters

value  T
 
exponent  T
 

Return Value

T

Pow(T, Int32)

Raises a value to the specified power..
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