MathNPowTNumeric Method

Returns a specified number raised to the specified power.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric Pow<TNumeric>(
	TNumeric x,
	TNumeric y
)
where TNumeric : struct, new(), INumeric<TNumeric>

Parameters

x  TNumeric
A number to be raised to a power.
y  TNumeric
A number that specifies a power.

Type Parameters

TNumeric

Return Value

TNumeric
The number x raised to the power y.

Remarks

This method may return NaN or Infinity. If NaN or Infinity cannot be represented by TNumeric, then this method may throw an ArithmeticException.

See Also