Full name
math.gamma
Library
math
Syntax
math.gamma(x)
Description
The math.gamma function returns the value of the gamma function for the point passed as an argument.
The gamma function has, on the real axis, the following graph:
Parameters
- x: Number from which to obtain the value of the gamma function.
Result
The math.gamma function returns a real number.
Examples
We can obtain the value of the gamma function for the point x = 0.5 with the following code:
math.gamma(0.5)
1.7724538509055159