home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.puzzles
- Path: sparky!uunet!utcsri!geac!zooid!r-node!amichail
- From: amichail@r-node.gts.org (Ashraf Michail)
- Subject: Re: Formulae for pi
- Message-ID: <1992Nov15.193400.8408@r-node.gts.org>
- Organization: R-node Public Access UNIX Information System (416-249-5366)
- References: <1992Nov6.163504.17171@husc15.harvard.edu>
- Date: Sun, 15 Nov 1992 19:34:00 GMT
- Lines: 17
-
- This is the best algorithm I know for generating PI:
-
- y0=SQRT(2) -1
- a0=6-4*SQRT(2)
-
- y1=(1-(1-y0^4)^(1/4))/(1+(1-y0^4)^(1/4))
- a1=((1+y1)^4)*a0-(2^3)(y1(1+y1+(y1)^2)
-
- y2=(1-(1-y1^4)^(1/4))/(1+(1-y1^4)^(1/4))
- a2=((1+y2)^4)*a1-(2^5)(y2(1+y2+(y2)^2)
-
- and so on ...
-
- 1/(a15) will give more than two billion digits of PI..
-
-
-
-