Quad.Pow Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Pow( | Returns a specified number raised to the specified power. |
Pow( | Returns a number raised to an integer power. |
Pow(Quad, Quad)
Returns a specified number raised to the specified power.
public static Quad Pow(
Quad value,
Quad exponent
)
Parameters
Return Value
QuadThe number value raised to the power exponent.
Exceptions
Divide | value is zero and exponent is less than zero. |
Overflow | The result is too large to be represented by a Quad value. |
Argument | 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.
public static Quad Pow(
Quad value,
int exponent
)
Parameters
Return Value
QuadThe 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
Divide | value is zero and exponent is less than zero. |
Overflow | The result is too large to be represented by a Quad value. |