January, 2009

Stupid Math Tricks with Python

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!

Read more

Published in

Theme port sponsored by Duplika Web Hosting.
Home Back To Top