Next: GERROR, Previous: FTELL, Up: Intrinsic Procedures
GAMMA — Gamma functionGAMMA(X) computes Gamma (\Gamma) of X. For positive,
integer values of X the Gamma function simplifies to the factorial
function \Gamma(x)=(x-1)!.
     X = GAMMA(X)
     | X | Shall be of type REALand neither zero
nor a negative integer. | 
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 | 
| GAMMA(X) | REAL(4) X | REAL(4) | GNU Extension | 
| DGAMMA(X) | REAL(8) X | REAL(8) | GNU Extension |