log(x) computes the logarithm of x.
FORTRAN 77 and later
result = log(x)
x - The type shall be real or complex.The return value is of type real or complex. The kind type parameter is the same as x.
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