# 不完全伽马函数

不完全伽马函数是参数 \( a \) 与自变量 \( z \) 的两个函数，\( \gamma(a,z) \) 与 \( \Gamma(a,z) \)，它们由同一被积函数 \( t^{a-1}e^{-t} \) 分别在产生完全伽马函数 \( \Gamma(a) \) 的积分区间的下段与上段上积分定义。凡是伽马型积分在有限限值处被截断的场合，它们就会出现；其正规化形式 \( P(a,z) \) 与 \( Q(a,z) \) 则充当伽马型概率分布的累积分布函数。<sup>[1](https://dlmf.nist.gov/8.2)</sup>

| 关键事实 | 细节 |
|---|---|
| 下函数 | \( \gamma(a,z) = \int_0^z t^{a-1} e^{-t}\,dt \)，对 \( \Re a > 0 \) 有定义<sup>[1](https://dlmf.nist.gov/8.2)</sup> |
| 上函数 | \( \Gamma(a,z) = \int_z^{\infty} t^{a-1} e^{-t}\,dt \)<sup>[1](https://dlmf.nist.gov/8.2)</sup> |
| 拆分恒等式 | 对 \( a \neq 0, -1, -2, \dots \)，有 \( \gamma(a,z) + \Gamma(a,z) = \Gamma(a) \)<sup>[1](https://dlmf.nist.gov/8.2)</sup> |
| 正规化形式 | \( P(a,z) = \gamma(a,z)/\Gamma(a) \) 与 \( Q(a,z) = \Gamma(a,z)/\Gamma(a) \)，且 \( P + Q = 1 \)<sup>[1](https://dlmf.nist.gov/8.2)</sup> |
| 整函数伴随 | \( \gamma^{*}(a,z) = z^{-a} P(a,z) \) 对 \( z \) 与 \( a \) 均为整函数<sup>[1](https://dlmf.nist.gov/8.2)</sup> |
| 统计学角色 | \( P \) 与 \( Q \) 是伽马分布的概率积分；卡方分布函数是其特例<sup>[2](https://dlmf.nist.gov/8.23)</sup> |
| 软件 | 正规化版本在 Boost.Math 中以 gamma_p 和 gamma_q 提供，在 GNU 科学计算库中以 gsl_sf_gamma_inc_P 提供<sup>[3](https://live.boost.org/doc/libs/1_71_0/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html)</sup><sup> • </sup><sup>[4](https://sources.debian.org/data/non-free/g/gsl-ref-html/1.16-1/Incomplete-Gamma-Functions.html)</sup> |

## 定义

这两个函数把欧拉关于伽马函数的积分在点 \( z \) 处一分为二。下不完全伽马函数从 0 积分到 \( z \)，上不完全伽马函数从 \( z \) 积分到无穷：<sup>[1](https://dlmf.nist.gov/8.2)</sup>

\[ \gamma(a,z) = \int_0^z t^{a-1} e^{-t}\,dt, \qquad \Re a > 0, \]

\[ \Gamma(a,z) = \int_z^{\infty} t^{a-1} e^{-t}\,dt. \]

下积分需要在原点处收敛，故要求 \( \Re a > 0 \)；上积分则无需此限制即可收敛。两个定义都可沿任意积分路径延拓到复 \( z \)，当路径不穿越负实轴（上函数还须避开原点）时，函数取主值，通常假定的正是这些主值。<sup>[1](https://dlmf.nist.gov/8.2)</sup>

两积分相加即还原完全伽马函数，<sup>[1](https://dlmf.nist.gov/8.2)</sup>

\[ \gamma(a,z) + \Gamma(a,z) = \Gamma(a), \qquad a \neq 0, -1, -2, \dots, \]

因此每个函数都携带着另一个函数所遗漏的信息。由于 \( \Gamma(a) \) 可能极大或极小，在统计学与数值计算中直接使用 \( \gamma \) 与 \( \Gamma \) 并不方便。正规化（正则化）函数即除以 \( \Gamma(a) \)：<sup>[1](https://dlmf.nist.gov/8.2)</sup>

\[ P(a,z) = \frac{\gamma(a,z)}{\Gamma(a)}, \qquad Q(a,z) = \frac{\Gamma(a,z)}{\Gamma(a)}, \qquad P(a,z) + Q(a,z) = 1. \]

第三个伴随函数 \( \gamma^{*}(a,z) = z^{-a} P(a,z) \) 去掉了使 \( P \) 在 \( z = 0 \) 附近行为别扭的因子 \( z^a \)；当 \( \Re a > 0 \) 时它有积分表示 \( \gamma^{*}(a,z) = \frac{1}{\Gamma(a)} \int_0^1 t^{a-1} e^{-zt}\,dt \)。<sup>[1](https://dlmf.nist.gov/8.2)</sup>

## 解析结构

伽马积分的两半作为参数 \( a \) 的函数行为不同。对 \( z \neq 0 \)，\( \Gamma(a,z) \) 是 \( a \) 的整函数，而 \( \gamma(a,z) \) 是亚纯函数，在 \( a = -n \)（\( n = 0, 1, 2, \dots \)）处有单极点，每个极点的留数为 \( (-1)^n / n! \)。标度化函数 \( \gamma^{*}(a,z) \) 对两个变量都是整函数，这正是它在某些解析工作中更受青睐的原因。<sup>[1](https://dlmf.nist.gov/8.2)</sup>

在 \( z \) 平面上绕原点一周会改变函数值，因为被积函数 \( t^{a-1} e^{-t} \) 在该处是多值的。对整数 \( m \)，<sup>[1](https://dlmf.nist.gov/8.2)</sup>

\[ \gamma(a, z e^{2\pi m i}) = e^{2\pi m i a}\, \gamma(a,z), \qquad a \neq 0, -1, -2, \dots, \]

当 \( a \) 为零或负整数时，右端代之以相应的极限值。上函数对应的延拓公式把负实轴两侧的值联系起来：<sup>[1](https://dlmf.nist.gov/8.2)</sup>

\[ e^{-\pi i a}\,\Gamma(a, z e^{\pi i}) - e^{\pi i a}\,\Gamma(a, z e^{-\pi i}) = -\frac{2\pi i}{\Gamma(1-a)}, \]

对 \( a \) 没有任何限制。<sup>[1](https://dlmf.nist.gov/8.2)</sup>

## 统计与应用

正规化的一对函数 \( P(a,x) \) 与 \( Q(a,x) \) 在统计学中被广泛用作伽马分布的概率积分：\( P \) 给出低于 \( x \) 的累积概率，\( Q \) 给出上尾概率。卡方分布函数是它们的特例，只需按自由度固定参数 \( a \) 即可得到。<sup>[2](https://dlmf.nist.gov/8.23)</sup> 这对正规化函数之于伽马分布，恰如不完全贝塔函数 \( I_x(a,b) \) 之于贝塔分布。<sup>[2](https://dlmf.nist.gov/8.23)</sup>

在统计学之外，上函数出现在排队论中：给出损失制系统阻塞概率的埃尔朗损失函数，可以用 \( Q(a,x) \) 的倒数表示。<sup>[2](https://dlmf.nist.gov/8.23)</sup>

## 数值计算

没有单一方法能在整个 \( (a,z) \) 平面上高效地计算这两个函数，各库的实现往往把若干方法组合起来。经典工具是适用于小 \( z \) 的 \( \gamma(a,z) \) 幂级数，以及与勒让德相关联、适用于 \( z \) 不太小的 \( \Gamma(a,z) \) 连分式；不完全伽马函数与不完全贝塔函数的连分式是特殊函数数值理论中的标准课题。<sup>[5](https://epubs.siam.org/doi/abs/10.1137/1.9780898717822.ch6)</sup> 针对这对函数，还专门推导了复参数 \( a \) 与 \( z \) 的连分式。<sup>[6](https://www.sciencedirect.com/science/article/pii/0377042785900342)</sup> 对于 \( a \) 与 \( x \) 均为正时的正规化比值 \( P(a,x) \) 与 \( Q(a,x) \)，已有专门算法同时处理求值与反演。<sup>[7](https://arxiv.org/abs/1306.1754)</sup>

**软件覆盖。** Boost.Math 提供四个不完全伽马函数：两个正规化版本 gamma_p 与 gamma_q，返回值落在 \( [0,1] \) 内；两个非正规化版本，返回值落在 \( [0, \Gamma(a)] \) 内。它推荐在统计应用中使用正规化版本，并指出计算主导幂项是保证精度的关键。与 GSL 2.1 相比，其报告误差至多为 201ε，平均为 13.5ε，其中 ε 为机器 epsilon。<sup>[3](https://live.boost.org/doc/libs/1_71_0/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html)</sup> GNU 科学计算库把正规化下函数提供为 gsl_sf_gamma_inc_P，对 \( a > 0 \)、\( x \geq 0 \) 计算 \( P(a,x) = 1 - Q(a,x) \)。<sup>[4](https://sources.debian.org/data/non-free/g/gsl-ref-html/1.16-1/Incomplete-Gamma-Functions.html)</sup> DLMF 的软件章节汇集了这些实现背后的研究文献，包括富勒顿、菲恩、施佩卢奇与普莱，以及特默的工作。<sup>[8](https://dlmf.nist.gov/8.28)</sup>

## 历史

不完全伽马函数源于欧拉 1729 年导出的阶乘函数的积分表示，以及勒让德引入的伽马函数记号。伽马函数及其欧拉积分的重要性促使数学家研究不完全欧拉积分，它们相当于伽马被积函数的不定积分。<sup>[9](https://functions.wolfram.com/GammaBetaErf/GammaRegularized/introductions/Gammas/ShowAll.html)</sup> 现代定义及其编号（DLMF 8.2.1 至 8.2.7）承自阿布拉莫维茨与斯提甘的手册传统，DLMF 直接引用了其中 6.5.1 至 6.5.4 各条。<sup>[1](https://dlmf.nist.gov/8.2)</sup>

## References

1. [DLMF §8.2 Definitions and Basic Properties, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/8.2)
2. [DLMF §8.23 Statistical Applications, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/8.23)
3. [Incomplete Gamma Functions, Boost.Math 1.71.0 documentation](https://live.boost.org/doc/libs/1_71_0/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html)
4. [Incomplete Gamma Functions, GNU Scientific Library Reference Manual](https://sources.debian.org/data/non-free/g/gsl-ref-html/1.16-1/Incomplete-Gamma-Functions.html)
5. [Gil, Amparo; Segura, Javier; Temme, Nico M. Numerical Methods for Special Functions, Chapter 6: Numerical Aspects of Continued Fractions, SIAM](https://epubs.siam.org/doi/abs/10.1137/1.9780898717822.ch6)
6. [On the computation of incomplete gamma functions in the complex domain, Journal of Computational and Applied Mathematics](https://www.sciencedirect.com/science/article/pii/0377042785900342)
7. [Efficient and accurate algorithms for the computation and inversion of the incomplete gamma function ratios, arXiv:1306.1754](https://arxiv.org/abs/1306.1754)
8. [DLMF §8.28 Software, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/8.28)
9. [Regularized incomplete gamma function: Introduction to the gamma functions, Wolfram Functions site](https://functions.wolfram.com/GammaBetaErf/GammaRegularized/introductions/Gammas/ShowAll.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Analytic number theory › Zeta and L-functions › Gamma, polygamma, and related special functions

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/incomplete-gamma-function

English original: https://www.edgepedia.org/incomplete-gamma-function
