Share your repls and programming experiences

← Back to all posts
Estimate Pi with an infinite series
LaurinNeff (13)

I made a quick little python script that estimates Pi with an infinite series! I'm currently letting it run up to 1 000 000 000 000 000 to see how precise it can get

Acronymical (16)

No wonder it's called Pithon

mwilki7 (1136)

You could also try Nilakantha series to do some loop unrolling to help speed up the process

DuckMonkey (4)

Try the Viete's Sequence, much faster and equally accurate

LizFoster (648)

Wow, this is so cool! I don't know how I hadn't seen this before. Good job!!