WebTools
0
首頁

Calculation

Gamma Function

Calculate the gamma function Γ(x) and log-gamma function lnΓ(x).

Γ(x)
-
lnΓ(x)
-
Γ(x) = ∫₀^∞ t^(x−1) e^(−t) dt

使用方法

Enter x and the gamma function Γ(x) and log-gamma lnΓ(x) are computed using the Lanczos approximation. For positive integers the result matches (n−1)!, and negative non-integer arguments are supported as well. The log form avoids overflow for large x, which is what statistical computations typically need when evaluating densities that contain gamma factors.

  • High-precision Γ(x) via Lanczos approximation
  • lnΓ(x) for large arguments
  • Matches (n−1)! at positive integers
  • Supports negative non-integer inputs
  • Instant results

使用案例

  • Evaluating statistical distributions with gamma factors
  • Generalizing factorials to real arguments
  • Physics calculations involving gamma functions
  • Checking numerical library outputs

分享

相關工具