Raises an argument to an integer power.
Namespace:
Meta.Numerics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax 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
The argument. - n
- Type: SystemInt32
The power.
Return Value
Type:
DoubleThe value of x
n.
Remarks Low integer powers can be computed by optimized algorithms much faster than the general
algorithm for an arbitrary real power employed by Pow(Double, Double).
See Also