Google Sheets
GAMMALN function in Google Sheets
Returns the the logarithm of a specified Gamma function, base e (Euler's number).
=GAMMALN(value)GAMMALN syntax and parameters
One argument, one required.
- valuenumberRequired
The input to the Gamma function. The natural logarithm of Gamma (value) will be returned. value must be positive.
GAMMALN examples
Formulas you'll actually reuse.
ln Γ(x) — for x = 6 this is ln(120), i.e. ln(5!):
=GAMMALN(B2)Result
4.7875A factorial via the gamma function — works for non-integers too:
=EXP(GAMMALN(B2 + 1))Result
120
GAMMALN in Excel
Same name — your formula ports as-is.
Try GAMMALN in the playground
Edit the example — nothing to install.
Preloaded with the GAMMALN formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ASINReturns the inverse sine of a value, in radians.MathExcel