In older versions of Fortran, the logarithm function was typically called using the function ALOG().
However, it is important to note that the ALOG() function is considered archaic and is no longer recommended for use in modern Fortran programming.
In modern Fortran, the logarithm function is called using the LOG() function. This function allows you to calculate the logarithm of a number with a specified base.
program logarithm_example
real :: x, result
x = 10.0
result = LOG(x)
write(*,*) "The logarithm of", x, "is", result
end program logarithm_example
Output
The logarithm of 10.0000000 is 2.30258512
Related | LOG, LOG2, LOG10 – FORTRAN