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