Difference between revisions of "Documentation/How Tos/Calc: GAMMA function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(New page: __NOTOC__ == GAMMA == Returns the values of the Gamma function. === Syntax === <tt>'''GAMMA(x)'''</tt> :<tt>'''x'''</tt> is a number. :: Constraint: If x is an integer, then x must be ...) |
|||
| Line 18: | Line 18: | ||
=== Example === | === Example === | ||
| − | + | {| | |
| − | + | |<tt>'''GAMMA(4) = 6.0'''</tt> exact | |
| − | + | <tt>'''GAMMA(34.56)''' ≈ 6.2336323276E+037 </tt> | |
| + | |||
| + | <tt>'''GAMMA(−4)'''</tt> not defined | ||
| + | || [[Image:GammaFunction.png|Graph of the Gamma function]] | ||
| + | |} | ||
=== Remarks === | === Remarks === | ||
Revision as of 21:28, 22 December 2008
GAMMA
Returns the values of the Gamma function.
Syntax
GAMMA(x)
- x is a number.
- Constraint: If x is an integer, then x must be positive.
Semantic
GAMMA(x) calculates
- .
Example
| GAMMA(4) = 6.0 exact
GAMMA(34.56) ≈ 6.2336323276E+037 GAMMA(−4) not defined |
|
Remarks
For x < 0.5 Eulers reflection formula is used.
The Gamma function has poles for negative integers and for zero. Near the poles the values are less accurate.
If x is a positive integer, then
But be aware, that OpenOffice.org has only a precision of 15 digits and results, which would consists of more than 15 significant digits, are rounded.
See also
GAMMALN, GAMMADIST, GAMMAINV, FACT
Functions listed alphabetically, Functions listed by category
Issues
This function is expected for OOo3.1. Issue 94555
