ln
To calculate the natural logarithm
The function returns the logarithm to base e (the Eulerโs number) and is therefore called the natural logarithm.
It returns a positive number. In the case of 0, the result is -โ (minus infinity).
Syntax
ln(number)
Return
number
Example
ln(x)
To calculate the natural logarithm of a number x to the base e (e is the Eulerโs number).
Result: 0
Result: -โ
Result: 4.605170185988092
See also
exp
, which calculates the natural exponential function.
Last updated