Clicky
Showing changes from revision #3 to #4:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
gamma(x)
computes Gamma ((削除) (追記) (追記ここまで)) of \\Gamma
(削除ここまで)x
. For positive, integer values of x
the Gamma function simplifies to the factorial function (削除) (追記) (追記ここまで).\\Gamma(x)=(x-1)!
(削除ここまで)
\\Gamma(x) = \\int_0^\\infty t^{x-1}{\\mathrm{e}}^{-t}\,円{\\mathrm{d}}t
(削除ここまで)Fortran 2008 and later
x = gamma(x)
x
- Shall be of type real
and neither zero nor a negative integer.The return value is of type real
of the same kind as x
.
program test_gamma
real :: x = 1.0
x = gamma(x) ! returns 1.0
end program test_gamma
Logarithm of the Gamma function: log_gamma