Purpose
Natural logarithm.
Class
Elemental function
Argument Type and Attributes
Result Type and Attributes
Same as X.
Result Value
If the argument type is complex, the result is the principal value of the imaginary part OMEGA in the range -PI < OMEGA <= PI. If the real part of the argument is less than zero and its imaginary part is zero, the imaginary part of the result approximates PI.
Examples
LOG (10.0) has the value 2.3025851 (approximately).
Specific Name | Argument Type | Result Type | Pass As Arg? |
---|---|---|---|
ALOG | default real | default real | yes |
DLOG | double precision real | double precision real | yes |
QLOG | REAL(16) | REAL(16) | yes (1) |
CLOG | default complex | default complex | yes |
CDLOG | double complex | double complex | yes (1) |
ZLOG | double complex | double complex | yes (1) |
CQLOG | COMPLEX(16) | COMPLEX(16) | yes (1) |
Notes: