Post Reply 
Can you calculate Pi using a Solver?
12-10-2019, 09:07 PM (This post was last modified: 12-10-2019 09:36 PM by jthole.)
Post: #10
RE: Can you calculate Pi using a Solver?
(12-10-2019 07:45 PM)JurgenRo Wrote:  
(12-09-2019 03:35 PM)Valentin Albillo Wrote:  If your Solver has Square Root and Factorial, this one from Ramanujan converges very fast and it's quite simple, few bytes to program it and only a few terms to add up for full precision...

[Image: 0993bfb34b91c895c4a55899e71b875dc8d4dd3b]

... and no trigs used, as requested, just basic arithmetic. Once you get 1/Pi just invert it with 1/x

Regards.
V.

(Pi^2)/6=sum_{n=1}^{infinity}1/n^2 might fall into the same category.
Juergen

Converges much more slowly though. I just let it run from n=0 to 1 million (on the 17Bii simulator on my iPhone), and the difference with the Pi constant is still -9,5x10E-7. In contrast, the one suggested by Valentin already equals the Pi constant for n=2.

I'll test it on the 17Bii later, to see how much slower than the iPhone 7 it is Smile

Edit: in order not to pollute this thread, I posted the results here: https://www.hpmuseum.org/forum/thread-14101.html

11C, 12C, 17Bii, DM42
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Can you calculate Pi using a Solver? - jthole - 12-10-2019 09:07 PM



User(s) browsing this thread: 1 Guest(s)