Next: , Previous: LOC, Up: Intrinsic Procedures


6.134 LOG — Logarithm function

Description:
LOG(X) computes the logarithm of X.
Standard:
F77 and later
Class:
Elemental function
Syntax:
RESULT = LOG(X)
Arguments:

X The type shall be REAL(*) or COMPLEX(*).

Return value:
The return value is of type REAL(*) or COMPLEX(*). The kind type parameter is the same as X.
Example:
          program test_log
            real(8) :: x = 1.0_8
            complex :: z = (1.0, 2.0)
            x = log(x)
            z = log(z)
          end program test_log
     

Specific names:

Name Argument Return type Standard
ALOG(X) REAL(4) X REAL(4) f95, gnu
DLOG(X) REAL(8) X REAL(8) f95, gnu
CLOG(X) COMPLEX(4) X COMPLEX(4) f95, gnu
ZLOG(X) COMPLEX(8) X COMPLEX(8) f95, gnu
CDLOG(X) COMPLEX(8) X COMPLEX(8) f95, gnu