ALOG

The ALOG function returns the natural logarithm of X . The result has the same structure as X .

Calling Sequence

Result = ALOG( X )

Arguments

X

The value for which the natural log is desired. The result of ALOG is double-precision floating if X is double-precision, and complex if X is complex. All other types are converted to single-precision floating-point and yield floating-point results. When applied to complex numbers, the definition of the ALOG function is:

ALOG ( x ) = COMPLEX (log | x |, atan x )

Example

To print the natural logarithm of 5, enter:

PRINT, ALOG(5)

IDL prints:

1.60944

See Also

ALOG10