MathNPowTNumeric Method
Returns a specified number raised to the specified power.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric Pow<TNumeric>(
TNumeric x,
TNumeric y
)
where TNumeric : struct, new(), INumeric<TNumeric>
Public Shared Function Pow(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
x As TNumeric,
y As TNumeric
) As TNumeric
public:
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static TNumeric Pow(
TNumeric x,
TNumeric y
)
static member Pow :
x : 'TNumeric *
y : 'TNumeric -> 'TNumeric when 'TNumeric : struct, new() and INumeric<'TNumeric>
- x TNumeric
- A number to be raised to a power.
- y TNumeric
- A number that specifies a power.
- TNumeric
TNumericThe number
x raised to the power
y.
This method may return
NaN or Infinity.
If
NaN or Infinity cannot be represented by
TNumeric,
then this method may throw an
ArithmeticException.