GAMMA(X)
computes Gamma (\Gamma) of X. For positive, integer values of X the Gamma function simplifies to the factorial function \Gamma(x)=(x-1)!.
Fortran 2008 and later
Elemental function
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
Name | Argument | Return type | Standard |
DGAMMA(X) |
REAL(8) X |
REAL(8) |
GNU extension |
Logarithm of the Gamma function: LOG_GAMMA
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gfortran/GAMMA.html