Skip to content
Reference > Methods

lnGamma(x)

Definition

Double lnGamma(Number x)

Description

Returns the natural logarithm of the Gamma function applied to x.

Parameter Definition

Name Type Description
x Number Input value

Examples

1
2
3
Double r1 = lnGamma(3.5D); // r1 == 1.2009736023362918
Double r2 = lnGamma(-50.3D); // r2 == NaN
Double r3 = lnGamma(777); // r3 == 4391.868477843784