Xref: utzoo comp.compression:324 sci.math:16658 Newsgroups: comp.compression,sci.math Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!boulder!spot.Colorado.EDU!weverka From: weverka@spot.Colorado.EDU (Robert T. Weverka) Subject: Re: Program for Calculating PI Message-ID: <1991Apr12.135126.10017@colorado.edu> Sender: news@colorado.edu (The Daily Planet) Nntp-Posting-Host: spot.colorado.edu Organization: University of Colorado, Boulder References: Date: Fri, 12 Apr 1991 13:51:26 GMT Lines: 35 In article avenger@wpi.WPI.EDU (Samuel Joseph Pullara) writes: >Could someone please send me a program that will calculate PI to any >arbitrary number of digits? Thanks in advance... > Since you didn`t specify language, how about Mathematica? example program for calculating Pi to 1 billion digits (Note will run on any machine which runs Mathematica, from the Mac to the Cray ____________________________ In[1]:= N[Pi,1000000000] Out[1]= 3.1415926535897932384626433832795028841971693993751058209749445923078\ > 164062862089986280348253421170679821480865132823066470938446095505822317\ > 253594081284811174502841027019385211055596446229489549303819644288109756\ > 659334461284756482337867831652712019091456485669234603486104543266482133\ > 936072602491412737245870066063155881748815209209628292540917153643678925\ > 903600113305305488204665213841469519415116094330572703657595919530921861\ > 173819326117931051185480744623799627495673518857527248912279381830119491\ > 298336733624406566430860213949463952247371907021798609437027705392171762\ > 931767523846748184676694051320005681271452635608277857713427577896091736\ > 371787214684409012249534301465495853710507922796892589235420199561121290\ > 219608640344181598136297747713099605187072113499999983729780499510597317\ > 328160963185950244594553469083026425223082533446850352619311881710100031\ ..........