Math.lgamma(x) â [float, -1 or 1]
Class Public methods
Calculates the logarithmic gamma of x and the sign of gamma of x.
::lgamma is same as
1 | [Math.log(Math.gamma(x).abs), Math.gamma(x) < 0 ? - 1 : 1 ] |
but avoid overflow by ::gamma for large x.
Please login to continue.