Method Log
Log(BigRational, Int32)
Returns the natural (base e) logarithm of a specified number.
Declaration
public static BigRational Log(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 natural 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!
Log(BigRational, BigRational, Int32)
Computes the logarithm of a value in the specified base.
Declaration
public static BigRational Log(BigRational x, BigRational newBase, int digits)
Parameters
Type | Name | Description |
---|---|---|
BigRational | x | The value whose logarithm is to be computed. |
BigRational | newBase | The base in which the logarithm is to be computed. |
System.Int32 | digits | The maximum number of fractional decimal digits in the return value. |
Returns
Type | Description |
---|---|
BigRational |
|
Log(BigRational)
Computes the natural (base-E
) logarithm of a value.
Declaration
public static BigRational Log(BigRational x)
Parameters
Type | Name | Description |
---|---|---|
BigRational | x | The value whose natural logarithm is to be computed. |
Returns
Type | Description |
---|---|
BigRational |
|
Remarks
Part of the new NET 7 number type system see System.Numerics.ILogarithmicFunctions`1.Log(`0).
The desired precision can preset by MaxDigits