# 椭圆的周长

椭圆的周长是其边界的总长度，与圆的周长 \( 2\pi r \) 不同，它没有初等函数意义上的闭式表达式。对于长半轴为 \( a \)、短半轴为 \( b \) 的椭圆，精确周长为 \( 4a \cdot E(e) \)，其中 \( E \) 为第二类完全椭圆积分，\( e = \sqrt{1 - b^{2}/a^{2}} \) 为离心率。<sup>[1](https://mathworld.wolfram.com/Ellipse.html)</sup> 因此实际工作中依赖近似公式，其中斯里尼瓦萨·拉马努金（Srinivasa Ramanujan）1914 年给出的两个公式是标准选择。<sup>[2](https://www.toodum.com/math/ellipse-circumference)</sup><sup> • </sup><sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup>

| 关键事实 | 详情 |
|---|---|
| 精确形式 | \( p = 4a \cdot E(e) \)，其中 \( E \) 为第二类完全椭圆积分，离心率 \( e = \sqrt{1 - b^{2}/a^{2}} \)<sup>[1](https://mathworld.wolfram.com/Ellipse.html)</sup> |
| 闭式解 | 初等函数中不存在闭式解；椭圆的弧长需要椭圆积分<sup>[4](https://mathworld.wolfram.com/EllipticIntegral.html)</sup> |
| 拉马努金第二公式 | \( P \approx \pi(a+b)\left[1 + \dfrac{3h}{10 + \sqrt{4 - 3h}}\right] \)，其中 \( h = \dfrac{(a-b)^{2}}{(a+b)^{2}} \)；实际使用精度约在 0.01% 以内<sup>[2](https://www.toodum.com/math/ellipse-circumference)</sup> |
| 算例对比 | 对 \( a = 12 \)、\( b = 7 \)：朴素公式 \( \pi(a+b) \) 误差为 −1.0380；拉马努金第一公式误差为 −0.00004；拉马努金第二公式相对精确值 60.728232 的误差为 −0.0000000024<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup> |
| 历史上的界 | 开普勒（Kepler）1609 年的公式 \( 2\pi\sqrt{ab} \) 是一个下界；托马斯·缪尔（Thomas Muir）于 1883 年提出了半三次均值形式<sup>[5](https://www.numericana.com/answer/ellipse.htm)</sup> |
| 现代改进 | 2025 年一项对拉马努金第二公式的指数函数改进，在 \( b/a \in [0.0001, 1] \) 全范围内最大相对误差约为 0.57 ppm<sup>[6](https://arxiv.org/abs/2510.16191)</sup> |

## 为什么没有简单公式

椭圆是到两个固定焦点的距离之和为常数的点的集合，等价地说，是沿一个方向拉伸的圆。<sup>[7](https://www.calcdragon.com/learn/ellipse-area-calculator-explained)</sup> 它的面积有简短的精确公式 \( A = \pi \cdot a \cdot b \)，但周长在拉伸下并不遵循同样的规律：边界伸长多少，取决于曲线相对于拉伸方向的方向。<sup>[7](https://www.calcdragon.com/learn/ellipse-area-calculator-explained)</sup>

为椭圆建立弧长积分，得到的积分无法用初等函数表示。它定义了一个新函数，即第二类完全椭圆积分，勒让德（Legendre）为其命名，并与第一类积分 \( K(k) \) 一同研究。<sup>[8](https://dlmf.nist.gov/19.2)</sup><sup> • </sup><sup>[4](https://mathworld.wolfram.com/EllipticIntegral.html)</sup> 用它可将完整周长表示为一个象限弧长的四倍：<sup>[1](https://mathworld.wolfram.com/Ellipse.html)</sup>

\[ p = 4a \cdot E(e) \]

同一个积分可以数值计算到任意精度，它也有一个快速收敛的级数，即高斯-库默尔（Gauss-Kummer）级数：<sup>[1](https://mathworld.wolfram.com/Ellipse.html)</sup>

\[ p = \pi(a+b) \sum_{n=0}^{\infty} \binom{1/2}{n}^{2} h^{2n} = \pi(a+b)\left(1 + \tfrac{1}{4}h^{2} + \tfrac{1}{64}h^{4} + \tfrac{1}{256}h^{6} + \cdots\right) \]

其中 \( h = \left(\dfrac{a-b}{a+b}\right)^{2} \)。每一个闭式周长近似都诱导出 \( E(x) \) 的一个具有相同相对误差的近似，这也是这两个问题被放在一起研究的原因之一。<sup>[9](https://doi.org/10.3247/SL1Math05.004)</sup>

## 拉马努金的近似

**拉马努金第一公式。** 第一个公式发表于 1914 年，为<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup>

\[ P \approx \pi\left[3(a+b) - \sqrt{(3a+b)(a+3b)}\right] \]

**拉马努金第二公式。** 第二个公式引入辅助量 \( h = \dfrac{(a-b)^{2}}{(a+b)^{2}} \)：<sup>[2](https://www.toodum.com/math/ellipse-circumference)</sup>

\[ P \approx \pi(a+b)\left[1 + \frac{3h}{10 + \sqrt{4 - 3h}}\right] \]

在 \( a = 12 \)、\( b = 7 \)（离心率约 0.81）的测试椭圆上，两个公式分别给出 60.728191 和 60.728232，而精确值为 60.728232，误差分别约为 −0.00004 和 −0.0000000024；朴素的 \( \pi(a+b) \) 给出 59.6903，偏差超过整整一个单位。<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup> 对于日常工程范围 \( e \le 0.95 \)，任一拉马努金公式都足够精确，更精细的方法几乎没有实际意义。<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup>

拉马努金没有发表推导，详细的误差分析是后来才出现的：数学家马克·B·维拉里诺（Mark B. Villarino）于 2005 年给出了最精确公式的完整误差分析，<sup>[10](https://arxiv.org/abs/math/0506384)</sup> 乌代·尚卡尔（Uday Shankar）2026 年的一篇论文重构了一个合理的推导，并提出了一个一致优于拉马努金表达式的改进。<sup>[11](https://arxiv.org/abs/2603.03373)</sup>

## 其他近似与界

拉马努金公式属于一个更大的家族。约翰内斯·开普勒于 1609 年给出 \( P \approx 2\pi\sqrt{ab} \)，阿尔姆克维斯特（Almkvist）与贝恩特（Berndt）将其认定为下界；欧拉（Euler）、皮亚诺（Peano）和托马斯·缪尔（1883）贡献了其他公式，缪尔的公式使用了半轴的半三次均值。<sup>[5](https://www.numericana.com/answer/ellipse.htm)</sup> 这些基于均值的公式在简洁与精度之间作出权衡，其误差可以按离心率的幂级数展开以作比较。<sup>[5](https://www.numericana.com/answer/ellipse.htm)</sup>

严谨的工作与近似相辅相成。王、褚、邱、蒋于 2012 年在《逼近论杂志》（Journal of Approximation Theory）上发表了界定周长的锐不等式，改进了此前的已知结果。<sup>[12](https://www.sciencedirect.com/science/article/pii/S0021904512000597)</sup> 在改进方面，2025 年的一篇 arXiv 论文用指数修正对拉马努金第二公式加以改造，报告在 \( b/a \in [0.0001, 1] \) 的全离心率范围内最大相对误差约为 0.57 ppm。<sup>[6](https://arxiv.org/abs/2510.16191)</sup>

## 应用场景

每一条闭合的开普勒轨道都是椭圆，因此任务规划者为推进剂预算、通信覆盖弧段或传感器指向窗口计算轨道总路径长度时，实际上就是在计算椭圆周长。<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup> 在机械工程中，用于疲劳寿命计算的椭圆轴承滚道接触长度，就是一次周长计算。<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup> 在医学中，心脏、眼晶状体和肿瘤的横截面 MRI 与 CT 切片被近似为椭圆，临床医生将椭圆拟合到器官边界时，可能需要周长来估计表面积或弧长。<sup>[3](https://www.freetooler.com/math/ellipse-circumference/)</sup> 日常例子包括椭圆形跑道、椭圆形的界面元素边框，以及包裹椭圆风管时的材料估算。<sup>[13](https://thelinuxcode.com/perimeter-of-an-ellipse-exact-math-practical-approximations-and-production-ready-implementations/)</sup>

## References

1. [Ellipse, Wolfram MathWorld](https://mathworld.wolfram.com/Ellipse.html)
2. [Ellipse Circumference Calculator, Toodum](https://www.toodum.com/math/ellipse-circumference)
3. [Ellipse Circumference Calculator, Freetooler](https://www.freetooler.com/math/ellipse-circumference/)
4. [Elliptic Integral, Wolfram MathWorld](https://mathworld.wolfram.com/EllipticIntegral.html)
5. [Circumference/Perimeter of an Ellipse: Formula(s), Numericana](https://www.numericana.com/answer/ellipse.htm)
6. [Is simplicity still possible for a more accurate approximation to the perimeter of the ellipse?, arXiv:2510.16191](https://arxiv.org/abs/2510.16191)
7. [Ellipse Area Explained: The π·a·b Formula, Perimeter Approximations and Worked Examples, Calc Dragon](https://www.calcdragon.com/learn/ellipse-area-calculator-explained)
8. [DLMF §19.2 Definitions, NIST](https://dlmf.nist.gov/19.2)
9. [Ellipse Perimeter Approximations, Stanislav Sýkora](https://doi.org/10.3247/SL1Math05.004)
10. [Mark B. Villarino (2005), Ramanujan's Perimeter of an Ellipse, arXiv:math/0506384](https://arxiv.org/abs/math/0506384)
11. [Uday Shankar (2026), Perimeter of an Ellipse: Understanding Ramanujan's Approximation, arXiv:2603.03373](https://arxiv.org/abs/2603.03373)
12. [Miao-Kun Wang, Yu-Ming Chu, Song-Liang Qiu, Yue-Ping Jiang (2012), Bounds for the perimeter of an ellipse, Journal of Approximation Theory 164(7): 928–937](https://www.sciencedirect.com/science/article/pii/S0021904512000597)
13. [Perimeter of an Ellipse: Exact Math, Practical Approximations, and Production-Ready Implementations, TheLinuxCode](https://thelinuxcode.com/perimeter-of-an-ellipse-exact-math-practical-approximations-and-production-ready-implementations/)

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

Topic: 物质世界与数学 › 数学与统计学 › 几何学与拓扑学 › Analytic and coordinate geometry

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/perimeter-of-an-ellipse

English original: https://www.edgepedia.org/perimeter-of-an-ellipse
