Quad.Pow Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

Pow(Quad, Quad) Returns a specified number raised to the specified power.
Pow(Quad, Int32) Returns a number raised to an integer power.

Pow(Quad, Quad)

Returns a specified number raised to the specified power.
C#
public static Quad Pow(
	Quad value,
	Quad exponent
)

Parameters

value  Quad
A Quad value to be raised to a power.
exponent  Quad
A Quad value that specifies a power.

Return Value

Quad
The number value raised to the power exponent.

Implements

IPowerFunctions<TSelf>.Pow(TSelf, TSelf)

Exceptions

DivideByZeroException

value is zero and exponent is less than zero.

OverflowException

The result is too large to be represented by a Quad value.

ArgumentOutOfRangeException

Both value and exponent are zero

-or-

value is negative and exponent is not an integer.

Pow(Quad, Int32)

Returns a number raised to an integer power.
C#
public static Quad Pow(
	Quad value,
	int exponent
)

Parameters

value  Quad
A real number.
exponent  Int32
An integer exponent.

Return Value

Quad
The real number raised to the specified exponent.

Remarks

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.

Exceptions

DivideByZeroException

value is zero and exponent is less than zero.

OverflowException

The result is too large to be represented by a Quad value.

See Also