BigFloat.GetLog2 Method

Definition

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

Overload List

GetLog2(AccuracyGoal) Returns the value of the natural logarithm of 2 to the specified number of digits.
GetLog2(AccuracyGoal, RoundingMode) Returns the value of the natural logarithm of 2 to the specified number of digits.

GetLog2(AccuracyGoal)

Returns the value of the natural logarithm of 2 to the specified number of digits.
C#
public static BigFloat GetLog2(
	AccuracyGoal goal
)

Parameters

goal  AccuracyGoal
An AccuracyGoal value that specifies the desired accuracy.

Return Value

BigFloat
The natural logarithm of 2 to the specified number of digits.

Remarks

Computing a very large number of digits may take a long time.

GetLog2(AccuracyGoal, RoundingMode)

Returns the value of the natural logarithm of 2 to the specified number of digits.
C#
public static BigFloat GetLog2(
	AccuracyGoal goal,
	RoundingMode roundingMode
)

Parameters

goal  AccuracyGoal
The desired accuracy.
roundingMode  RoundingMode
A RoundingMode value that specifies how the result should be rounded.

Return Value

BigFloat
The natural logarithm of 2 to the specified number of digits.

Remarks

Computing a very large number of digits may take a long time.

See Also