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.
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
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.