math.gamma

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:

math.gamma
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
Submitted by admin on Thu, 02/18/2021 - 09:27