Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ecsvax.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!ecsvax!ctk From: ctk@ecsvax.UUCP (Tim Kelley) Newsgroups: net.sources Subject: Re: Solving Pi Message-ID: <1778@ecsvax.UUCP> Date: Sun, 28-Jul-85 21:24:25 EDT Article-I.D.: ecsvax.1778 Posted: Sun Jul 28 21:24:25 1985 Date-Received: Wed, 31-Jul-85 00:56:10 EDT References: <187@ski.UUCP> <11307@watnot.UUCP> Reply-To: ctk@ecsvax.UUCP (Tim Kelley) Organization: NCSU Dept. of mathematics Lines: 34 Summary: In article <11307@watnot.UUCP> cagordon@watnot.UUCP (Chris A. Gordon) writes: >In article <187@ski.UUCP> eeg@ski.UUCP (eeg systems (bcx) writes: >[ article deleted - program to calculate pi to X digits ] >>** infinity infinity >>** ____ 16*(-1e(k+1)) ____ 4*(-1e(k+1)) >>** \ \ >>** pi = > ------------- - > ------------ (Expression 1) >>** / / >>** ---- (2k-1)*5e(2k-1) ---- (2k-1)*239e(2k-1) >>** k = 1 k = 1 >>** > >Here is a more simple sum-evaluation of pi (thought I don't know if it will work >with the original program): > > oo > ---- k-1 > | | \ (-1) > pi = +--+ > ---------- (Expression 2) > | / 2k-1 > ---- > k=1 Friends, I hate to include the complete text of the article I'm responding to but I have no alternative. The reason expression 1 is better than expression 2 is that the series in 1 converges faster than that in 2. One can check this out with a programmable calculator. Expression 2 will run all night and give you maybe 3 figures. If you want 3 digits of accuracy from expression 2 you'd need about 1000 terms; 4 digits would require 10,000. -- C.T. Kelley decvax!mcnc!ecsvax!ctk Dept. of Math. N.C. State U. Box 8205 Raleigh, N.C. 27695-8205, 919-737-7895