BigFloat.Pow Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Pow(BigFloat, BigFloat) Raises a number to the specified power.
Pow(BigFloat, Int32) Raises a number to the specified power.
Pow(BigFloat, BigFloat, AccuracyGoal) Raises a number to the specified power with the specified accuracy.
Pow(BigFloat, Int32, AccuracyGoal) Raises a number to the specified power with the specified accuracy.
Pow(BigFloat, BigFloat, AccuracyGoal, RoundingMode) Raises a number to the specified power with the specified accuracy.
Pow(BigFloat, Int32, AccuracyGoal, RoundingMode) Raises a number to the specified power with the specified accuracy.

BigFloat.Pow(BigFloat, BigFloat)

Raises a number to the specified power.
C#
public static BigFloat Pow(
	BigFloat value,
	BigFloat exponent
)

Parameters

value  BigFloat
A BigFloat value.
exponent  BigFloat
The exponent.

Return Value

BigFloat
value raised to the power exponent with an accuracy that meets the default accuracy goal.

Remarks

The accuracy of the result is the smaller of the relative accuracies of value and exponent.

Exceptions

ArgumentNullException

value is null.

-or-

exponent is null.

BigFloat.Pow(BigFloat, Int32)

Raises a number to the specified power.
C#
public static BigFloat Pow(
	BigFloat value,
	int exponent
)

Parameters

value  BigFloat
A BigFloat value.
exponent  Int32
The exponent.

Return Value

BigFloat
value raised to the power exponent.

Remarks

The result has the same relative accuracy as value.

Exceptions

ArgumentNullExceptionvalue is null.

BigFloat.Pow(BigFloat, BigFloat, AccuracyGoal)

Raises a number to the specified power with the specified accuracy.
C#
public static BigFloat Pow(
	BigFloat value,
	BigFloat exponent,
	AccuracyGoal accuracyGoal
)

Parameters

value  BigFloat
A BigFloat value.
exponent  BigFloat
The exponent.
accuracyGoal  AccuracyGoal
An AccuracyGoal value that specifies the desired accuracy of the result.

Return Value

BigFloat
value raised to the power exponent with an accuracy within accuracyGoal.

Exceptions

ArgumentNullException

value is null.

-or-

exponent is null.

BigFloat.Pow(BigFloat, Int32, AccuracyGoal)

Raises a number to the specified power with the specified accuracy.
C#
public static BigFloat Pow(
	BigFloat value,
	int exponent,
	AccuracyGoal accuracyGoal
)

Parameters

value  BigFloat
A BigFloat value.
exponent  Int32
The exponent.
accuracyGoal  AccuracyGoal
An AccuracyGoal value that specifies the desired accuracy of the result.

Return Value

BigFloat
value raised to the power exponent with an accuracy within accuracyGoal.

Exceptions

ArgumentNullExceptionvalue is null.

BigFloat.Pow(BigFloat, BigFloat, AccuracyGoal, RoundingMode)

Raises a number to the specified power with the specified accuracy.
C#
public static BigFloat Pow(
	BigFloat value,
	BigFloat exponent,
	AccuracyGoal accuracyGoal,
	RoundingMode roundingMode
)

Parameters

value  BigFloat
A BigFloat value.
exponent  BigFloat
The exponent.
accuracyGoal  AccuracyGoal
An AccuracyGoal value that specifies the desired accuracy of the result.
roundingMode  RoundingMode
A RoundingMode value that specifies how the result should be rounded.

Return Value

BigFloat
value raised to the power exponent with an accuracy within accuracyGoal.

Exceptions

ArgumentNullException

value is null.

-or-

exponent is null.

BigFloat.Pow(BigFloat, Int32, AccuracyGoal, RoundingMode)

Raises a number to the specified power with the specified accuracy.
C#
public static BigFloat Pow(
	BigFloat value,
	int exponent,
	AccuracyGoal accuracyGoal,
	RoundingMode roundingMode
)

Parameters

value  BigFloat
A BigFloat value.
exponent  Int32
The exponent.
accuracyGoal  AccuracyGoal
An AccuracyGoal value that specifies the desired accuracy of the result.
roundingMode  RoundingMode
A RoundingMode value that specifies how the result should be rounded.

Return Value

BigFloat
value raised to the power exponent with an accuracy within accuracyGoal.

Exceptions

ArgumentNullExceptionvalue is null.

See Also