(Note: this post is an extension on the calculating pi with python post from a couple of years back. Also here’s another way to inefficiently calculate pi with Buffon’s Needles.) We’re currently working with Power series and Taylor series in Calculus. One particularity pretty derivation is going from the series for to the series for […]
Buffon’s Needle is a famous way to (slowly) estimate . Here’s a processing.org program to calculate (to keep the math-hipster hatred of -day at a critical point and concave up). Link to live simulation and code. All variables are easy to change, size of window, length of needle, spacing of lines, etc. Neat program to write. […]
A gift from a visiting college student (the pi memorizer)! Wow.
Intro to Computer programming worked at calculating digits of pi today. The actual algorithms aren’t too bad, but getting more than the standard number of digits from a double is a bit trickier. Here’s a program that calculates pi using: Bailey–Borwein–Plouffe formula Bellard’s formula and Chudnovsky algorithm Holy smokes is Chudnovsky algorithm’s fast! Plouff Bellard Chudnovsky Iteration […]