EsbDecimals - a Free Subset of ESBPCS for .NET

DecimalOps.Pow Method (Int32, Int32)

Computes the First Value raised to the power of the Second Value using series expansion.

[Visual Basic]
Overloads Public Shared Function Pow( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Decimal
[C#]
public static decimal Pow(
   int x,
   int y
);

Parameters

x
Value to raise
y
Power to use

Return Value

x ^ y, x raised to the power y

Exceptions

Exception TypeCondition
ArithmeticException Thrown when X is Zero and a Negative Power, or a Negative X is raised to a non-integral power.

See Also

DecimalOps Class | Esb.Math Namespace | DecimalOps.Pow Overload List