Displaying posts tagged with

“pi”

Repost: a very loose and circular association to Pi Day

(Originally published March 14, 2009) Happy Pi (π) Day! Americans write dates in the MM/DD/YYYY format instead of the DD/MM/YYYY format used by the rest of the world.  Usually a rather painful and confusing format if you did not grow up with it, causing checks to bounce and leases to expire for those who recently […]

Stupid Pi tricks for Pi Day

π approximation script, from Stephen Chappell. import sys def pi(): a, b, c, d, e, f = 1, 0, 1, 1, 3, 3 while True: if a * 4 + b – c < c * e: yield e a, b, c, d, e, f = a * 10, (b – c * e) * […]