Let's say you know the equation of a circle (r2 = x2 + y2), but want to calculate the area of a circle. And, uh, you forgot how to do that. Happens to all of us, honest. Fortunately, we've got a little python program that uses the monte-carlo method to estimate the value of pi! Let's get going!
January, 2009
Stupid Math Tricks with Python
Submitted by garnold on Sat, 01/17/2009 - 3:31pm