+-------------------------------IBM Extension--------------------------------+

LGAMMA(X)

Purpose

Log of gamma function.



natural logarithm of gamma(x)

Class

Elemental function

Argument Type and Attributes

X
must be of type real.

Result Type and Attributes

Same as X.

Result Value

The result has a value equal to logeGamma(X).

Examples

LGAMMA (1.0) has the value 0.0.

LGAMMA (10.0) has the value 12.80182743 (approximately).


Specific Name Argument Type Result Type Pass As Arg?
LGAMMA default real default real yes
LGAMMA double precision real double precision real yes
ALGAMA (1) default real default real yes
DLGAMA (2) double precision real double precision real yes
QLGAMA (3) REAL(16) REAL(16) yes

X must satisfy the inequality:

  1. 0 < X <= 4.0850E36.

  2. 2.3561D-304 <= X <= 21014.

  3. 2.3561Q-304 <= X <= 21014.

+----------------------------End of IBM Extension----------------------------+

IBM Copyright 2003