Intel® Fortran Compiler 16.0 User and Reference Guide
Elemental Intrinsic Function (Generic): Returns the common logarithm of the argument.
result = LOG10 (x)
x |
(Input) Must be of type real or complex. If x is real, its value must be greater than zero. If x is complex, its value must not be zero. |
The result type and kind is the same as x. The result value is approximately equal to log10x.
Specific Name |
Argument Type |
Result Type |
---|---|---|
ALOG10 1,2 |
REAL(4) |
REAL(4) |
DLOG10 3 |
REAL(8) |
REAL(8) |
QLOG10 |
REAL(16) |
REAL(16) |
CLOG10 2 |
COMPLEX(4) |
COMPLEX(4) |
CDLOG10 3 |
COMPLEX(8) |
COMPLEX(8) |
CQLOG10 |
COMPLEX(16) |
COMPLEX(16) |
1This function is treated like LOG10. 2 The setting of compiler options specifying real size can affect ALOG10, CLOG10, and LOG10. 3 The setting of compiler options specifying double size can affect DLOG10 and CDLOG10. |
LOG10 (8.0) has the value 0.9030900.
LOG10 (15.0) has the value 1.176091.
The following shows another example:
REAL r r = LOG10(10.0) ! returns 1.0