MoreMathPow Method

Raises an argument to an integer power.

Definition

Namespace: Meta.Numerics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double Pow(
	double x,
	int n
)

Parameters

x  Double
The argument.
n  Int32
The power.

Return Value

Double
The value of xn.

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