763 B
763 B
title | description | menu | weight | ||||||
---|---|---|---|---|---|---|---|---|---|
math.lgamma() function | The math.lgamma() function returns the natural logarithm and sign (-1 or +1) of `math.gamma(x:x)`. |
|
301 |
The math.lgamma()
function returns the natural logarithm and sign (-1 or +1) of math.gamma(x:x)
.
Output data format: Object
import "math"
math.lgamma(x: 3.14)
// Returns {lgamma: 0.8261387047770286, sign: 1}
Parameters
x
The value used in the operation.
Data type: Float
Special cases
math.lgamma(x: +Inf) // Returns +Inf
math.lgamma(x: 0) // Returns +Inf
math.lgamma(x: -integer) // Returns +Inf
math.lgamma(x: -Inf) // Returns -Inf
math.lgamma(x: NaN) // Returns NaN