Documentation

math.gamma() function

The math.gamma() function returns the Gamma function of x.

Output data type: Float

import "math"

math.gamma(x: 2.12)

// Returns 1.056821007887572

Parameters

x

The value used in the operation.

Data type: Float

Special cases

math.gamma(x: +Inf) = +Inf
math.gamma(x: +0) = +Inf
math.gamma(x: -0) = -Inf
math.gamma(x: <0) = NaN for integer x < 0
math.gamma(x: -Inf) = NaN
math.gamma(x: NaN) = 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: