数学史

马达瓦的 π 级数

马达瓦–莱布尼茨级数 π/4 = 1 − 1/3 + 1/5 − … 收敛极慢。本演示逐步累加部分和,用对数刻度绘制误差,并展示“加上下一项的一半”如何显著加速收敛。

7 分钟难度 3/3交互演示区域不展示广告。
Terms6Partial sum0.744011544π/40.785398163Error4.14e-2Next term0.076923Corrected0.782473082Corrected error2.93e-3
1e01e-11e-21e-31e-41e-5050100150200|error| vs termsraw partial sumwith next term / 2number of terms

π/4 = 1 − 1/3 + 1/5 − 1/7 + … · S(6) = 0.744011544 · error = 4.139e-2 · first correction 0.076923 / 2 → 0.782473082

ktermpartial sumnext / 2corrected
01.0000001.000000-0.1666670.833333
1-0.3333330.6666670.1000000.766667
20.2000000.866667-0.0714290.795238
3-0.1428570.7238100.0555560.779365
40.1111110.834921-0.0454550.789466
5-0.0909090.7440120.0384620.782473
60.0769230.820935-0.0333330.787601
7-0.0666670.7542680.0294120.783680
80.0588240.813091-0.0263160.786776
9-0.0526320.7604600.0238100.784269
100.0476190.808079-0.0217390.786340
11-0.0434780.7646010.0200000.784601
First correction. For an alternating series whose terms shrink to zero, the true value lies between two consecutive partial sums. Averaging them, S + next term / 2, cancels the leading error and speeds convergence dramatically — the green curve. It is still an approximation, not a proof of the limit.
Kerala school, 14th–15th centuryThe series for π is associated with Madhava of Sangamagrama and the Kerala school, and later with Gregory, Leibniz, and others in Europe. What is historically secure is that the Kerala texts present infinite-series reasoning and this π series centuries before the European rediscovery. Attributing every related series to a single person is not secure.
Speedup0.07×

The raw alternating sum crawls toward π/4 ≈ 0.785398163. Its error falls like 1/N, so you need thousands of terms for a few digits. Adding half of the next term cancels most of that error and converges much faster, as the green curve shows. The Kerala school used such series reasoning long before Europe.

你看到的是什么

1

第 k 项为 (−1)^k/(2k+1),因此部分和交替落在 π/4 两侧。原始和的误差仅按约 1/N 缩小。

2

真值位于相邻两个部分和之间。加上下一项的一半 S + term/2,可抵消主要误差,收敛显著加快。

3

图表以对数刻度显示两种误差随项数的变化,便于直接比较收敛斜率。

为什么重要

这是用无穷级数计算常数的早期范例之一,也带来一个持久启示:同一个和式,取不同的外推方式,收敛可以很慢也可以很快。

复杂度与细节

计算 N 项为 O(N)。修正项只需 O(1),绘图按步长采样至多 201 个点。

常见问题

这个级数确切是马达瓦发现的吗?+

π 级数与马达瓦及喀拉拉学派相关,后来欧洲数学家在独立背景下也得到它。各个相关级数究竟出自谁手尚无完全定论,因此演示归于传统而非把所有成果归给某一个人。

为什么加上下一项的一半效果这么好?+

对递减的交替级数,极限位于 S 与 S + 下一项之间。中点 S + 下一项/2 更接近真值,消去了主要的一半步长误差,使剩余误差下降得更快。