The Chudnovsky Algorithm
LizFoster (592)

(NOTE: It only does 18 iterations, as if you try to do any more, it raises an OverflowError, how lame.. -__-)

わーい, another π approximation method! (I do love these things. π is gorgeous, is it not?)

This is one of the fastest formulae for π out there, used to approximate out to 50 TRILLION DIGITS of π, in January of this year!

The notation for this in Σ is very long, so I have provided a screenshot of it, from its Wikipedia page:

Feedback is greatly appreciated, please enjoy!

If you are interested in learning more, this is the Wikipedia page:
https://en.wikipedia.org/wiki/Chudnovsky_algorithm

(EDIT: Wow! I am glad this was a bit of a conversation starter for you all, thank you so much for all the upvotes!!)

(EDIT 2: I am still getting tons of traction on this, and am glad it is so interesting to all of you. Thank you so much!)

You are viewing a single comment. View All
IreoluwaRaufu (200)

What an impressive feat of mathematical programming, too bad Python can't handle the sheer awesomeness of the Chudnovsky Algorithm. The C languages are great for this kinda thing though, so I hear.

LizFoster (592)

@IreoluwaRaufu Thank you so much!

Yes, it is unfortunate. I've been considering learning Java and C at some point, but I just do not have the time anymore, since school started back up online
(-__- )

IreoluwaRaufu (200)

@LizFoster Ikr, you'd think an online school would make things easier, but nope.

LizFoster (592)

@IreoluwaRaufu Exactly! It feels like there is twice as much work...

IreoluwaRaufu (200)

@LizFoster And it's such a struggle to stay organized and keep in touch with teachers... I hope my GPA doesn't tank before the year is over. 😓

LizFoster (592)

@IreoluwaRaufu Ha ha, lucky for me, my GPA has been tanked since the BEGINNING of the year! Really though, good luck, I hope all goes well with your GPA.

IreoluwaRaufu (200)

@LizFoster Thanks a bunch, best of luck to you too!

LizFoster (592)

@IreoluwaRaufu Oh, thank you! ^ ^* I appreciate it.