# 莱布尼茨π公式

**莱布尼茨π公式**是无穷级数

\[ \frac{\pi}{4} = 1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \frac{1}{9} - \cdots = \sum_{n=0}^{\infty} \frac{(-1)^n}{2n+1}, \]

即奇数倒数之交错和，收敛于π除以4。它是反正切级数在1处的取值，亦称格雷戈里–莱布尼茨级数，或以其最早已知发现者命名为摩陀婆–格雷戈里–莱布尼茨级数。<sup>[1](https://people.math.binghamton.edu/dikran/478/Ch5.pdf)</sup><sup> • </sup><sup>[2](https://homes.luddy.indiana.edu/donbyrd/Teach/Math/HistoryOfComputingPiPREV.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 公式 | \( \pi/4 = 1 - 1/3 + 1/5 - 1/7 + \cdots \)，即反正切级数在 \( x = 1 \) 处的值<sup>[1](https://people.math.binghamton.edu/dikran/478/Ch5.pdf)</sup> |
| 最早发现 | 桑加马格拉马的摩陀婆更早发现，詹姆斯·格雷戈里于1671年独立发现<sup>[1](https://people.math.binghamton.edu/dikran/478/Ch5.pdf)</sup> |
| 莱布尼茨的角色 | 1674年重新发现该级数，1682年发表<sup>[3](https://isis2.cc.oberlin.edu/faculty/jcalcut/gausspi.pdf)</sup> |
| 误差界 | 对交错级数，截断误差以所略去的下一项的绝对值界定<sup>[4](https://www-m3.ma.tum.de/bornemann/Numerikstreifzug/Chapter1/chall_int.pdf)</sup> |
| 实际代价 | 约需一万项方能得到4位正确小数<sup>[5](https://mathshistory.st-andrews.ac.uk/HistTopics/Pi_through_the_ages/)</sup> |
| 现代地位 | 用于计算过于缓慢；纪录计算采用丘德诺夫斯基型级数，每项约给出14位正确数字<sup>[6](https://openreview.net/pdf/daa6a3720ac0f953bd1a7178de13b4867597ae29.pdf)</sup> |

## 级数及其来源

该公式是反正切级数

\[ \arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \cdots \]

在 \( x = 1 \) 处的特例，因为 \( \arctan(1) = \pi/4 \)。标准推导将 \( 1/(1+x^2) \) 展开为公比 \( -x^2 \) 的几何级数，从0到1逐项积分，并将该积分等同于 \( \arctan(1) \)。几何级数仅在 \( |x| < 1 \) 时收敛，因此端点 \( x = 1 \) 需要另行论证；阿贝尔定理是断定端点处之和与反正切一致的标准工具。<sup>[3](https://isis2.cc.oberlin.edu/faculty/jcalcut/gausspi.pdf)</sup>

该级数条件收敛而非绝对收敛：项 \( 1/(2n+1) \) 递减至零，但其绝对值之和发散。正因如此，截断后的误差与所保留的最后一项相当，这也是该公式实际应用中的弱点所在。<sup>[7](https://math.stackexchange.com/questions/1702694/why-is-the-leibniz-method-for-approximating-pi-so-inefficient)</sup>

## 历史

该级数有三方归属。十四世纪喀拉拉学派数学家桑加马格拉马的摩陀婆在格雷戈里之前发现了反正切展开；\( \pi/4 \) 特例被描述为格雷戈里–摩陀婆公式的特例，格雷戈里于1671年发现该公式，而格雷戈里本人似乎并未注意到 \( \pi/4 \) 的这一特定表达式。<sup>[1](https://people.math.binghamton.edu/dikran/478/Ch5.pdf)</sup>格雷戈里未发表其级数成果，但自1669年起与伦敦的约翰·柯林斯通信，直至1675年格雷戈里去世，反正切公式即见于该通信中。<sup>[8](https://math.stackexchange.com/questions/235382/early-proofs-of-leibnizs-formula)</sup>

莱布尼茨于1674年重新发现该级数，1682年发表，因此在欧洲文献中多冠以其名。<sup>[3](https://isis2.cc.oberlin.edu/faculty/jcalcut/gausspi.pdf)</sup>麦克图托的π史指出，该公式有时归于莱布尼茨（1646–1716），但似乎最早由詹姆斯·格雷戈里（1638–1675）发现。<sup>[5](https://mathshistory.st-andrews.ac.uk/HistTopics/Pi_through_the_ages/)</sup>因此有些资料径直称之为格雷戈里π级数。<sup>[9](https://proofwiki.org/wiki/Leibniz%27s_Formula_for_Pi)</sup>

## 收敛性及其缓慢的原因

该级数是缓慢收敛的教科书范例。要使π的4位小数正确，误差须低于0.00005，而由于误差与最后一项同阶，这需要约一万项。<sup>[5](https://mathshistory.st-andrews.ac.uk/HistTopics/Pi_through_the_ages/)</sup>每增加一位正确小数，项数大约增至原来的十倍，因为各项仅以 \( 1/n \) 的速度缩小。<sup>[7](https://math.stackexchange.com/questions/1702694/why-is-the-leibniz-method-for-approximating-pi-so-inefficient)</sup>现代对π计算方法的比较将莱布尼茨级数归为收敛极慢一类，适于教学而非产生数字。<sup>[6](https://openreview.net/pdf/daa6a3720ac0f953bd1a7178de13b4867597ae29.pdf)</sup>

该级数在计算上唯一便利之处是误差控制。由于它满足交错级数（莱布尼茨）判别法，截断于第 \( n \) 项所得误差的绝对值以所略去的下一项的绝对值界定，因此使用者可立即知道部分和有多精确。<sup>[4](https://www-m3.ma.tum.de/bornemann/Numerikstreifzug/Chapter1/chall_int.pdf)</sup>

## 同一思想的更快应用

该级数本身不实用，但其背后的反正切展开一旦与倍角恒等式结合，便成为数百年间π计算的主力。梅钦于1706年通过用格雷戈里–莱布尼茨级数计算的反正切分解来求π，例如形如 \( \pi/4 = 2\arctan(1/3) + \arctan(1/7) \) 的表达式；小自变量使反正切级数以几何速度快速收敛。<sup>[3](https://isis2.cc.oberlin.edu/faculty/jcalcut/gausspi.pdf)</sup>

莱布尼茨级数本身也可变换。若要创造π计算位数纪录，这些方法已然过时：丘德诺夫斯基兄弟1988年的超几何公式改进了拉马努金的思想，每项约给出14位正确π数字，是当前纪录计算的基础。<sup>[6](https://openreview.net/pdf/daa6a3720ac0f953bd1a7178de13b4867597ae29.pdf)</sup>

## 相关结果

同样的交错倒数模式在数论中另有出现。狄利克雷类数公式赋予类似交错性质的级数以数论解释，将此类和与整数的计数性质联系起来。<sup>[11](https://www.mathpages.com/home/kmath477/kmath477.htm)</sup>

## References

1. [Chapter 5 course notes on series for π, Binghamton University](https://people.math.binghamton.edu/dikran/478/Ch5.pdf)
2. [Progress in Computing Pi, 250 BCE to the Present, D. Byrd](https://homes.luddy.indiana.edu/donbyrd/Teach/Math/HistoryOfComputingPiPREV.pdf)
3. [The numerical evaluation of π via arctangent series, J. Calcut, Oberlin College](https://isis2.cc.oberlin.edu/faculty/jcalcut/gausspi.pdf)
4. [The numerical evaluation of a challenging integral, F. Bornemann, TU München](https://www-m3.ma.tum.de/bornemann/Numerikstreifzug/Chapter1/chall_int.pdf)
5. [A history of Pi, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Pi_through_the_ages/)
6. [Computing π Using Numerical Methods, OpenReview](https://openreview.net/pdf/daa6a3720ac0f953bd1a7178de13b4867597ae29.pdf)
7. [Why is the Leibniz method for approximating pi so inefficient, Mathematics Stack Exchange](https://math.stackexchange.com/questions/1702694/why-is-the-leibniz-method-for-approximating-pi-so-inefficient)
8. [Early proofs of Leibniz's formula, Mathematics Stack Exchange](https://math.stackexchange.com/questions/235382/early-proofs-of-leibnizs-formula)
9. [Leibniz's Formula for Pi, ProofWiki](https://proofwiki.org/wiki/Leibniz%27s_Formula_for_Pi)
10. [Even from Gregory–Leibniz series π could be computed: an example of how convergence of series can be accelerated, University of Ljubljana](https://www.researchgate.net/publication/317035714_Even_from_Gregory-Leibniz_series_p_could_be_computed_an_example_of_how_convergence_of_series_can_be_accelerated)
11. [MathPages: series related to Leibniz's and Dirichlet's class number formula](https://www.mathpages.com/home/kmath477/kmath477.htm)

---
*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 › Special values and closed formulas

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/leibniz-formula-for

English original: https://www.edgepedia.org/leibniz-formula-for
