Next: LGE, Previous: LEN_TRIM, Up: Intrinsic Procedures
LGAMMA — Logarithm of the Gamma functionGAMMA(X) computes the natural logrithm of the absolute value of the
Gamma (\Gamma) function.
X = LGAMMA(X)
| X | Shall be of type REAL and neither zero
nor a negative integer.
|
REAL of the same kind as X.
program test_log_gamma
real :: x = 1.0
x = lgamma(x) ! returns 0.0
end program test_log_gamma
| Name | Argument | Return type | Standard
|
LGAMMA(X) | REAL(4) X | REAL(4) | GNU Extension
|
ALGAMA(X) | REAL(4) X | REAL(4) | GNU Extension
|
DLGAMA(X) | REAL(8) X | REAL(8) | GNU Extension
|