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).

ln(1) 

Result: 0

ln(0)

Result: -โˆž

ln(100) 

Result: 4.605170185988092

See also

exp, which calculates the natural exponential function.

Last updated