Post Reply 
Happy Pi Day!
03-15-2023, 03:10 PM (This post was last modified: 03-15-2023 03:29 PM by Gerson W. Barbosa.)
Post: #6
RE: Happy Pi Day!
(03-15-2023 07:21 AM)Massimo Gnerucci Wrote:  27+ hours?!?

Yes, 27h07m04s to be exact. I was expecting it to last about 24 hours, by my estimation has gone a bit wrong. This one was not meant to be fast.

I have used probably the worst method to compute \(\pi\) ever, the Wallis Product multiplied by a correction factor, which requires a lot of full-precision multiplication and divisions:


[Image: 52749526175_96da36e999_z.jpg]

Or, in WolframAlpha notation,

Product((4k^2)/(4k^2 - 1),{k,1,n})*(2 + 4/(8n + 3 + ContinuedFractionK[4k^2 - 1,8n +4,{k,1,n}]))

QBASIC and HP-42S/Free42 programs available here and here.

Anyway, it was a good test for my MSX 8-bit computer from 1987 :-)

Next time, for speed, I'll try a more traditional Machin formula.

Ciao,

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Happy Pi Day! - Eddie W. Shore - 03-14-2023, 01:48 PM
RE: Happy Pi Day! - cyclist - 03-14-2023, 05:56 PM
RE: Happy Pi Day! - Gerson W. Barbosa - 03-15-2023, 12:59 AM
RE: Happy Pi Day! - Massimo Gnerucci - 03-15-2023, 07:21 AM
RE: Happy Pi Day! - Gerson W. Barbosa - 03-15-2023 03:10 PM
RE: Happy Pi Day! - Eddie W. Shore - 03-15-2023, 03:11 AM
RE: Happy Pi Day! - Gerson W. Barbosa - 05-01-2023, 01:21 PM



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