如何肯定個人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
相關文章
相關標籤/搜索