如何确定我的pi计算是否准确?

社会主义新天地 提交于 2020-07-27 00:50:27

问题:

I was trying various methods to implement a program that gives the digits of pi sequentially. 我正在尝试各种方法来实现一个顺序给出pi数字的程序。 I tried the Taylor series method, but it proved to converge extremely slowly (when I compared my result with the online values after some time). 我尝试了泰勒系列方法,但事实证明它收敛得非常慢(当我在一段时间后将我的结果与在线值进行比较时)。 Anyway, I am trying better algorithms. 无论如何,我正在尝试更好的算法。

So, while writing the program I got stuck on a problem, as with all algorithms: How do I know that the n digits that I've calculated are accurate? 因此,在编写程序时,我遇到了问题,就像所有算法一样:我怎么知道我计算的n位数是准确的?


解决方案:

参考一: https://stackoom.com/question/xvjK/如何确定我的pi计算是否准确
参考二: https://oldbug.net/q/xvjK/How-do-I-determine-whether-my-calculation-of-pi-is-accurate
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!