找回密码
 欢迎注册
楼主: mathematica

[转载] 计算圆周率的Chudnovsky公式

[复制链接]
发表于 2023-12-21 11:21:57 | 显示全部楼层
这个公式可不得了,之前拉马努金公式每计算一项可以获得8位有效数字已经很了不起了,然而他们的这个公式居然可以做到每计算一项得出15位有效数字!1994年,他们利用这个强大的公式,得到了圆周率小数点后40.44亿位。


https://baijiahao.baidu.com/s?id ... r=spider&for=pc

这儿声称8位、15位,很显然,我的计算结果打了他们的假!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2023-12-22 13:47:51 | 显示全部楼层
拉马努金是怎么发现这个计算圆周率的公式的呢?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2023-12-25 10:24:09 | 显示全部楼层
nyy 发表于 2023-12-21 11:21
https://baijiahao.baidu.com/s?id=1642938913706777216&wfr=spider&for=pc

这儿声称8位、15位,很显然 ...

https://math.stackexchange.com/q ... pproximation-for-pi

这儿给出了为什么每项是8个有效数字,实际上不到8个,但是非常接近8个的原因

点评

nyy
lg(99^4)=7.982540778  发表于 2023-12-25 15:30
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2023-12-25 15:29:39 | 显示全部楼层
本帖最后由 nyy 于 2023-12-25 15:34 编辑
nyy 发表于 2023-12-21 11:13
计算结果
-5.2991698741646948426044878234657120328437939087364571033028283320584\
567825035586620 ...

大约对了14196项,14196/1001=14.1818181818,平均每项增加14.18个有效数字。


这个14.18是怎么来的呢?
(6k+1)(6k+2)(6k+3)(6k+4)(6k+5)(6k+6)/((3k+1)(3k+2)(3k+3))/(k+1)^3/640320^3
这个值取极限,
得到a=2^3*6^3/640320^3,
然后对这个a的倒数取以10位底的对数,得到14.18164746位有效数字。

点评

nyy
想透了这个每项的有效数字怎么来的,很开心  发表于 2023-12-25 15:37
nyy
我这个是硬凑答案的,但是我感觉是正确的,应该凑对了  发表于 2023-12-25 15:34
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2023-12-26 16:24:16 | 显示全部楼层
本帖最后由 nyy 于 2023-12-26 16:26 编辑

现在证明了 Chudnovsky 公式中的级数可以用 binary splitting 算法求得。我们整理一下公式

https://www.cnblogs.com/messier51/p/15872093.html


Pi - Chudnovsky
In Part 3 we managed to calculate 1,000,000 decimal places of π with Machin's arctan formula. Our stated aim was 100,000,000 places which we are going to achieve now!

Fun with Maths and Python
This is a having fun with maths and python article. See the introduction for important information!
We have still got a long way to go though, and we'll have to improve both our algorithm (formula) for π and our implementation.

The current darling of the π world is the Chudnovsky algorithm which is similar to the arctan formula but it converges much quicker. It is also rather complicated. The formula itself is derived from one by Ramanjuan who's work was extraordinary in the extreme. It isn't trivial to prove, so I won't! Here is Chudnovsky's formula for π as it is usually stated:

https://www.craig-wood.com/nick/articles/pi-chudnovsky/
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2023-12-26 16:31:15 | 显示全部楼层
这儿有不少马青公式

https://arxiv.org/pdf/2312.05413.pdf
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2023-12-27 08:56:41 | 显示全部楼层
nyy 发表于 2023-12-26 16:24
现在证明了 Chudnovsky 公式中的级数可以用 binary splitting 算法求得。我们整理一下公式

https://www.cn ...

binary splitting 算法,这个算法为什么能加速,有人知道为什么吗?
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2024-5-2 13:12 , Processed in 0.042325 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表