LOG intrinsic function
Standard: F77 F90 F95 F2003 F2008
Example Program
LOG ( X )

X : Real or Complex;

Result : Same type and kind as X.
The value of the result is an approximation to the natural logarithm (base e) of X. Like many intrinsic functions, this is elemental; the result has the same shape as X, with the operation being applied elementwise.

If X is of type Real, it must be greater than zero. If X is of type Complex, it must not be equal to zero, and the result is the principal value with the imaginary part in the range −π ≤ AIMAG(LOG(X)) ≤ +π.

EXP intrinsic function. LOG10 intrinsic function.