LN()

LN()

Top  Previous  Next

 

The LN() function returns the natural log of a value.

 

 

Format

 

LN(expr)

 

where

 

exprevaluates to a number or a numeric array.

 

 

The LN() function returns the natural log of expr. It is the inverse of the EXP() function.

 

If expr is a numeric array (a dynamic array where all elements are numeric), the LN() function operates on each element in turn and returns a numeric array with the same structure as expr.

 

 

Example

 

N = LN(X)

 

This statement finds the natural log of X and assigns this to N.

 

 

See also:

EXP()