View Single Post
  #4   Spotlight this post!  
Unread 26-01-2004, 01:42
Grommit Grommit is offline
Registered User
#0115 (Monta Vista Robotics)
 
Join Date: Oct 2002
Location: Cupertino
Posts: 47
Grommit will become famous soon enoughGrommit will become famous soon enough
Send a message via AIM to Grommit
Re: Random code snipets

That's a very poor formula for pi. It converges very, very, very slowly.

Try some of these links for some better formulas:
http://www.geocities.com/SiliconValley/Bay/9187/pi.htm
http://elephant.linux.net.cn/articles/pi.php?lang=en

Chudnovsky's algorithm would be a fine choice. You get 14 digits every iteration of the algorithm.