Method Log2
Log2(BigRational, Int32)
Returns the base 2 logarithm of a specified number.
Declaration
public static BigRational Log2(BigRational x, int digits)
Parameters
Type | Name | Description |
---|---|---|
BigRational | x | The number whose logarithm is to be found. |
System.Int32 | digits | The maximum number of fractional decimal digits in the return value. |
Returns
Type | Description |
---|---|
BigRational | The base 2 logarithm of |
Remarks
Note: In the current version, the function has not yet been finally optimized for performance
and the accuracy of the last digits has not yet been ensured!
Log2(BigRational)
Computes the base-2 logarithm of a value.
Declaration
public static BigRational Log2(BigRational x)
Parameters
Type | Name | Description |
---|---|---|
BigRational | x | The value whose base-2 logarithm is to be computed. |
Returns
Type | Description |
---|---|
BigRational |
|
Remarks
Part of the new NET 7 number type system see System.Numerics.ILogarithmicFunctions`1.Log2(`0).
The desired precision can preset by MaxDigits