Documentation

math.lgamma() function

The math.lgamma() function returns the natural logarithm and sign (-1 or +1) of math.gamma(x:x).

Output data format: Record

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

New! Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: