Clicky
Showing changes from revision #3 to #4:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
log(x)
computes the natural logarithm of x
, i.e. the logarithm to the base .
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
. If x
is complex
, the imaginary part (削除) (追記) (追記ここまで) is in the range \\omega
(削除ここまで)(削除) (追記) (追記ここまで).-\\pi \\lt \\omega \\leq \\pi
(削除ここまで)
program test_log
real :: x = 2.7182818284590451_8
complex :: z = (1.0, 2.0)
x = log(x) ! will yield (approximately) 1
z = log(z)
end program test_log