Click or drag to resize

MoreMathPow Method

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
)

Parameters

x
Type: SystemDouble
The argument.
n
Type: SystemInt32
The power.

Return Value

Type: 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