Archived

This topic is now archived and is closed to further replies.

tylerbingham

PI and OpenGL screensaver(MATH!!)

Recommended Posts

http://www.mathcad.com/library/constants/pi.htm

there is no calculation for pi, but that site gives a few theories on how to calculate pi. You will have to write the code though, it shouldn''t be too hard. One they failed to mention (the most recent one) is one that I can''t remember too well, but it basically counts the number of unit squares inside an increasingly large circles by taking two random numbers between 0 and the radius of the square and seeing if the sum of their squares is less than the radius squared, or something.

Share this post


Link to post
Share on other sites