LN

BASin

LN Logarithm (natural)

Function

LN gives the natural logarithm (the logarithm to base e) of a value. It acts as the inverse of EXP.

How to use LN

LN is followed by a numeric value, for example

60 LET x=LN y

An expression must be enclosed in brackets. The value following LN must be greater than 0. LN then returns the natural logarithm of this value.

Format

  • LN num-const
  • LN num-var
  • LN (num-expr)

See also

Chapter 10.