Untuk menghitung logaritma natural dari fungsi gamma.
=GAMMALN.PRECISE(x)
| Parameter | Deskripsi |
|---|---|
x |
A positive real number for which you want to calculate the natural logarithm of the gamma function. |
For positive integers n, GAMMALN.PRECISE(n) is equivalent to LN((n-1)!). For example, the following formula calculates the natural logarithm of the ga
=GAMMALN.PRECISE(5) // returns 3.17805383
The GAMMALN.PRECISE function takes a single argument as input like this:
=GAMMALN.PRECISE(x)
The argument x is the value for which you want to calculate the natural logarithm of the gamma function. Here are some basic examples showing both int
=GAMMALN.PRECISE(0.5) // returns 0.57236494...
=GAMMALN.PRECISE(2.0) // returns 0
=GAMMALN.PRECISE(2.5) // returns 0.28468287...
=GAMMALN.PRECISE(4.0) // returns 1.79175947...
In general, the GAMMALN.PRECISE function is equivalent to the natural logarithm of the gamma function:
=GAMMALN.PRECISE(x) // returns LN(GAMMA(x))
This relationship makes the GAMMALN.PRECISE function useful for calculations involving large factorials, as it avoids direct computation of large numb
=GAMMA(172) // returns #NUM! error
The GAMMALN.PRECISE function returns #NUM! for zero and negative numbers, and #VALUE! for non-numeric inputs.
=GAMMALN.PRECISE(0) // returns #NUM! error
=GAMMALN.PRECISE(-1) // returns #NUM! error
=GAMMALN.PRECISE(-2.5) // returns #NUM! error
=GAMMALN.PRECISE("text") // returns #VALUE! error