Returns a number raised to an integer power.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double Pow(
double x,
int n
)
Public Shared Function Pow (
x As Double,
n As Integer
) As Double
public:
static double Pow(
double x,
int n
)
static member Pow :
x : float *
n : int -> float
Parameters
- x
- Type: SystemDouble
A real number. - n
- Type: SystemInt32
An integer exponent.
Return Value
Type:
DoubleThe real number raised to the specified exponent.
Raising a number to an integer power is orders of
magnitude faster than raising a number to a real power.
If you know the exponent is an integer, use this method instead
of the Pow(Double, Double) method of
Math.
Reference