Returns the natural logarithm of the gamma function, Γ(x).
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
GAMMALN(x)The GAMMALN function calculates the natural logarithm of the absolute value of the gamma function, Γ(x). It is commonly used in statistical analysis to handle very large numbers that would otherwise cause overflow errors.
=GAMMALN(4)ผลลัพธ์: 1.791759
Calculates the natural logarithm of (4-1)!, which is ln(6).
If x is less than or equal to 0, GAMMALN returns the #NUM! error value.