问题:
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
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4330668