LOG function


The LOG function computes the natural logarithm of an expression.

Return Value

DECIMAL

Syntax

LOG(expression)

Arguments

expression

The value of expression must be greater than zero. When the value is equal to or less than zero, LOG returns an NA value.

Examples

Calculating a Natural Logarithm

In this example the LOG function is used to calculate the natural logarithm of the expression 4,000 + 6,000. The statements

DECIMALS = 5
SHOW LOG(4000 + 6000)

produce the following result.

9.21034