LOG
(Function)

Obtains a natural logarithm.

LOG (<Expression>)

This statement obtains the natural logarithm of the value designated in <Expression>.
Designate a value that is greater than 0 for <Numeric value>.
If <Expression> includes a double precision real numeral, the obtained value becomes double precision. Otherwise, a single precision value is obtained.

The natural logarithm is a logarithm with the constant "e" as the base. The value of the constant "e" is approximately 2.718282. The logarithm of an arbitrary numeric value of x with n as the base can be obtained by dividing the natural logarithm of x by the natural logarithm of n as shown below.
Lognx = Logex/Logen

DEFSNG lf1, lf2, lf3, lf4
|
|
lf1 = LOG(2)
|
'Assigns the natural logarithm of 2 to lf1.
|
lf2 = LOG(lf3/lf4)
|
'Assigns the natural logarithm of (lf3/lf4) to lf2.
|