Documentation/Calc Functions/GAMMA

Function name:
GAMMA

Category:
Statistical Analysis

Summary:
Calculates the value of the gamma function for a specified real number. In mathematics, the gamma function is an extension to the factorial function, which is only defined for the non-negative integers.

Syntax:
GAMMA(Number)

Returns:
Returns a real number which is the gamma function on Number.

Arguments:
Number is a real number or a reference to the cell containing that number for which the gamma function value is to be calculated.


 * If Number is a negative integer or 0, then the function returns an error value.

Additional details:

 * The formula for GAMMA function is:

where x is the Number.
 * GAMMA(x) can also be expressed as:
 * For more details on gamma function, visit Wikipedia.

Related LibreOffice functions:
[[Special:MyLanguage/Documentation/Calc_Functions/GAMMALN GAMMALN]

[[Special:MyLanguage/Documentation/Calc_Functions/GAMMALN.PRECISE GAMMALN.PRECISE]

ODF standard:
Section 6.18.31, part 2

Equivalent Excel functions:
GAMMA