Ln

ln returns the natural logarithm of its argument (natural means e based, where e=2.718261826459045...).

Syntax

 ln(NUMERIC_EXPR)

Example

 Y = ln(exp(2)): # Returns 2

Description

This function returns the natural logarithm of its argument. The type of result is Double. The reverse function of log(x) is the exponential function: exp(x).

Associated errors

Error codeDescription
10The argument is not numeric.
14The argument is negative.
52The argument is null.

See also

log, exp.