Re: A Formula for Pi
- From: Michael Press <rubrum@xxxxxxxxxxx>
- Date: Sun, 22 Jun 2008 18:01:25 -0700
In article <yradnT-8e4hodsDVnZ2dnUVZ_rHinZ2d@xxxxxxxxx>,
James Waldby <no@xxxxx> wrote:
On Sat, 21 Jun 2008 21:37:06 -0700, Michael Press wrote:
[...] Mensanator <mensanator@xxxxxxx> wrote:[...]
But I would prefer a series that converges in ~300 terms to the one
that converges in ~10**34 terms.
How about Ramanujan's series that gets eight decimal places for each
term?
1 2.sqrt{2} (4n)! [1103 + 26390n]
-- = --------- sum_n ------- ---------------
pi 9801 (n!)^4 (4*99)^4n
[Call this series R]
Also look up Euler's (who else?) transformation for accelerating
alternating series. In essence a difference table. Abramowitz and
Stegun, 3.6.27.
<http://mathworld.wolfram.com/EulersSeriesTransformation.html>
M. previously said he is using gmp rational arithmetic, so might
rule out R because of its sqrt(2) multiplier.
Good rational approximations to sqrt{2} are easy to get.
On a different
tack, computing one term of R is as expensive as computing several
terms of Machin's formula. (Perhaps 13 multiplies, 1 divide,
No divides.
(4n)! --> (4(n+1))! 4 multiplies
(n!)^4 --> ((n+1)!)^4 3 multiplies
(4*99)^(4n) --> (4*99)^(4(n+1)) 1 multiply
Multiplication of terms: 2 multiplies
and
some adds per R term, vs. 2 multiplies, 1 divide, and some adds per
Machin term.)
mathworld doesn't seem to mention the Van Wijngaarden variant of Euler's
transform, http://en.wikipedia.org/wiki/Van_Wijngaarden_transformation
--
Michael Press
.
- Follow-Ups:
- Re: A Formula for Pi
- From: James Waldby
- Re: A Formula for Pi
- References:
- Re: A Formula for Pi
- From: José Carlos Santos
- Re: A Formula for Pi
- From: Maury Barbato
- Re: A Formula for Pi
- From: Mensanator
- Re: A Formula for Pi
- From: Rob Johnson
- Re: A Formula for Pi
- From: Mensanator
- Re: A Formula for Pi
- From: Michael Press
- Re: A Formula for Pi
- From: James Waldby
- Re: A Formula for Pi
- Prev by Date: Re: Calculus doesn't apply to the unchanging curve
- Next by Date: Re: What has fractal theory achieved?
- Previous by thread: Re: A Formula for Pi
- Next by thread: Re: A Formula for Pi
- Index(es):
Relevant Pages
|