Over the years, several programs have been written for calculating [[π]] to [[arbitrary-precision arithmetic|many digits]] on [[personal computer]]s.
==General-purpose==
Most [[computer algebra system]]s can calculate π and other common [[mathematical constant]]s to any desired precision.
{{{icon|[[Image:Information.svg|25px]] }}}Welcome to Wikipedia. Although we invite everyone to contribute constructively to our encyclopedia, at least one of your recent edits{{{{{subst|}}}#if:Nirvana (band)|, such as the one you made to [[:Nirvana (band)]],}} was not constructive and has been [[Help:Reverting|reverted]] or removed. Please use [[Wikipedia:Sandbox|the sandbox]] for any test edits you would like to make, and take a look at the [[Wikipedia:Introduction|welcome page]] to learn more about contributing to this encyclopedia. {{{{{subst|}}}#if:{{{2|}}}|{{{2}}}|Thank you.}}<!-- Template:uw-vandalism1 --> [[User:Kuru|<font color = "#cd853f">'''Kuru'''</font>]] [[User talk:Kuru|<font color = "#f5deb3"><sup>''talk''</sup></font>]] 02:31, 21 July 2007 (UTC) <br clear="both">
Functions for calculating π are also included in many general [[software library|software libraries]] for [[arbitrary-precision arithmetic]], for instance [[MPFR]].
Your recent edit to [[:Nirvana (band)]] ([http://en.wikipedia.org/w/index.php?title=Nirvana_%28band%29&diff=146049011&oldid=146048766 diff]) was reverted by an '''automated bot''' that attempts to recognize and repair [[Wikipedia:vandalism|vandalism]] to Wikipedia articles. If the bot reverted a legitimate edit, please accept my humble creator's apologies – if you bring it to the attention of the bot's owner, we may be able to improve its behavior. For future editing tests use [[Wikipedia:Sandbox|the sandbox]]. '''[[User:Tawkerbot2/FAQ|Click here]]''' for '''frequently asked questions''' about the bot and this warning. // [[User:MartinBot|MartinBot]] 02:33, 21 July 2007 (UTC)
==Special-purpose==
Programs designed for the specific purpose of calculating π may have better performance than general-purpose mathematical software. They typically implement [[checkpointing]] and efficient [[disk swapping]] to facilitate extremely long-running and memory-expensive computations.
* '''PiFast''', by Xavier Gourdon was the fastest program for [[Microsoft Windows]] in 2003. According to its author, it can compute one million digits in 3.5 seconds on a 2.4 GHz [[Pentium 4]].<ref>http://numbers.computation.free.fr/Constants/PiProgram/timings.html</ref> PiFast can also compute other irrational numbers like ''[[e (mathematical constant)|e]]'' and [[square root of two|√2]]. It can also work at lesser efficiency with very little memory (down to a few tens of megabytes to compute well over a billion (10<sup>9</sup>) digits). This [[closed source]] [[freeware]] tool is a popular benchmark in the [[overclock]]ing community. PiFast 4.4 is available from Stu's Pi Page. PiFast 4.3 is available from Gourdon's page.
* '''QuickPi''' v4.5 Alpha 12 by Steve Pagliarulo for Windows is faster than PiFast for runs of under 400,000,000 digits. Version 4.5 is not publically available, but v4.00a is available on Stu's Pi Page below. Like PiFast, QuickPi can also compute other irrational numbers like ''e'' √2 and √3. The software may be obtained from the author through the Pi-Hacks Yahoo! forum, or from Stu's Pi Page.
==Most digits calculated on a home computer==
The most digits calculated on a home PC is by Shigeru Kondo on his Xeon 3.6Ghz, 12GB RAM, HDD 2x300GB (RAID0) using Windows 2003 server x64. Kondo calculated 70,000,000,000 digits using the 64-bit version of Pagliarulo's QuickPi v4.00. It took 73 days beginning on Dec 5, 2006.
Stu's Pi Page (below) is compiling a listing of large digit runs (over 1-gig or 1,073,741,824).
Latest record for digits on a supercomputer is 1,241,100,000,000 digits as of November 2002 by [[Yasumasa Kanada]]'s lab at The University of Tokyo.
==See also==
* [[Pi]]
* [[Computing π]]
* [[Super_Pi]]
==References==
<references />
==External links==
*[http://myownlittleworld.com/miscellaneous/computers/pilargetable.html Conclusive comparison of many implementations and algorithms for calculating Pi]
*[http://myownlittleworld.com/miscellaneous/computers/otherpiprograms.html Comparison of different pi programs (part 2 of previous link)]
*[http://home.istar.ca/~lyster/pi.html Stu's Pi page - List of fastest Pi programs on the planet]
*[http://momonga.t.u-tokyo.ac.jp/~ooura/fft.html An open source FFT]
*[http://momonga.t.u-tokyo.ac.jp/~ooura/pi_fft.html An open source FFT for pi]
*[http://ja0hxv.calico.jp/pai/estart.html Shigeru Kondou's Pi page - in English, digits avail. to 10b]
*[http://groups.yahoo.com/group/pi-hacks/ Pi-Hacks 'Yahoo! Groups' Discussion Forum]
*[http://www.swox.com/gmp/pi-with-gmp.html Computing billions of π digits using GMP]
*[http://packages.debian.org/stable/math/pi A fast package for Debian GNU/Linux]
*[http://www.apfloat.org/apfloat_java/applet/pi.html A pi calculation applet]
[[Category:Pi]]
[[Category:Numerical software]]
|