如何肯定个人pi计算是否准确? - How do I determine whether my calculation of pi is accurate?

问题:

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. 不管如何,我正在尝试更好的算法。 git

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
相关文章
相关标签/搜索