数学史

阿基米德逼近圆周率 π

阿基米德不用三角函数,而是通过不断加倍单位圆内接和外切正多边形的边数来估计 π。本演示从正六边形开始,最多加倍到 6144 条边,展示每次加倍如何从两侧锁定更多 π 的小数位。

6 分钟难度 2/3交互演示区域不展示广告。
Sides6Lower bound3.000000000Upper bound3.464101615Gap4.64e-1Digits locked0
r = 1inside · lower boundoutside · upper bound

perimeters: 6.000000000 < 2π < 6.928203230 · gap = 0.464101615

π =3.141592653589790 decimal places guaranteed

96 sides: Archimedes squeezed π between 223/71 ≈ 3.140845 and 22/7 ≈ 3.142857. With only 96 sides both bounds already agree to two decimal places.

Start with a hexagon around the unit circle. Doubling the sides pushes the inscribed perimeter up and the circumscribed perimeter down. When both bounds agree on the first 3 decimals of π, the squeeze has locked those digits. With reduced motion enabled, “Watch the squeeze” jumps straight to the target instead of animating.

你看到的是什么

1

单位圆内接正多边形的周长小于圆周长,因此它周长的一半是 π 的下界。

2

外切于圆的正多边形周长更长,因此它周长的一半是 π 的上界。

3

每次加倍用 a2 = 2ab/(a+b) 与 b = √(a2·b) 更新两条周长,使上下界之差大约缩小为原来的四分之一。

为什么重要

这是历史上最早的严格数值算法之一。它说明只要不断收紧误差上界,就能达到任意精度,这正是现代可验证数值计算的核心思想。

复杂度与细节

每次加倍为 O(1)。达到 n 条边需要 O(log n) 次加倍;锁定 m 位小数大约需要 O(log m) 次加倍。

常见问题

为什么上下界之差缩小得这么快?+

内接与外切周长以二次方式相互靠近:边数加倍使差值约缩小为原来的四分之一,因此每次加倍大约多锁定半位小数。

阿基米德用的是这个更新公式吗?+

阿基米德使用的是与这些代数递推等价的几何递推。这里的公式是他加倍构造的一种紧凑代数改写。