Syntax
naturalLog = log(expr)
Description
Returns the natural logarithm of expr. The natural logarithm uses the transcendental number "e" as its base. log always returns a double-precision result.
log is the inverse of the exp function. That is: log(exp(x))
equals x
.
Note
To find the logarithm of expr for an arbitrary base n
, use this formula:
theLog = log(expr)/log(n)
See also
exp; log10; log2