P. Borwein. Ramanujan, Modular Equations, and Approximations To Pi
P. Borwein. Ramanujan, Modular Equations, and Approximations To Pi
Contents
1 Introduction. 3
2 The State of Our Current Ignorance. 5
3 Matters Computational 7
4 Complexity Concerns 11
5 The Miracle of Theta Functions 14
6 Ramanujan's Solvable Modular Equations 18
7 Modular Equations and Pi 20
8 Ramanujan's sum 22
9 Sources 25
10 Appendix: One Hundred Billion Digits of Pi 28
Reprinted with permission from a version that appeared in the American Mathematical
Monthly Volume 96, (no. 3) 1989, 201-219.
1
11 Appendix: General Computational Update 29
11.1 BILLIONS : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 29
11.2 Kanada : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 30
11.3 October 12, 1995 : : : : : : : : : : : : : : : : : : : : : : : : : : : 31
12 Appendix: Landmarks 32
13 Appendix: Some Thoughts... 33
14 Appendix: Additional Discussion of Newton's Formula 33
15 Appendix: Frauds 34
15.1 Theorem : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 34
15.2 Excessive Fraud : : : : : : : : : : : : : : : : : : : : : : : : : : : : 34
15.3 Conjecture : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 35
16 Appendix: The Arithmetic-Geometric Mean Iteration 35
16.1 Equivalent Modular Parametrization : : : : : : : : : : : : : : : : 35
16.2 A Cubic Analogue of the AGM : : : : : : : : : : : : : : : : : : : 36
16.3 Equivalent Modular Parametrization : : : : : : : : : : : : : : : : 36
16.4 Some Explanations : : : : : : : : : : : : : : : : : : : : : : : : : : 37
16.5 The Quadratic s = 1=4 Iteration : : : : : : : : : : : : : : : : : : 38
16.6 Caveat Emptor: : : : : : : : : : : : : : : : : : : : : : : : : : : : : 38
17 Appendix: Ramanujan Type Series 38
Preface. The year 1987 was the centenary of Ramanujan's 1 birth. He died in
1920. Had he not died so young, his presence in modern mathematics might be
more immediately felt. Had he lived to have access to powerful algebraic manip-
ulation software, such as macsyma 2 , who knows how much more spectacular
his already astonishing career might have been.
This article will follow up one small thread of Ramanujan's work which has
found a modern computational context, namely, one of his approaches to ap-
proximating . Our experience has been that as we have come to understand
these pieces of Ramanujan's work, as they have become mathematically demys-
tied, and as we have come to realize the intrinsic complexity of these results, we
have come to realize how truly singular his abilities were. This article attempts
to present a considerable amount of material and, of necessity, little is presented
in detail. We have, however, given much more detail than Ramanujan provided.
Our intention is that the circle of ideas will become apparent and that the ner
points may be pursued through the indicated references.
1 Introduction.
There is a close and beautiful connection between the transformation theory for
elliptic integrals and the very rapid approximation of . This connection was
rst made explicit by Ramanujan in his 1914 paper \Modular Equations and
Approximations to "26]. We might emphasize that Algorithms 1 and 2 are
not to be found in Ramanujan's work, indeed no recursive approximation of
is considered, but as we shall see they are intimately related to his analysis.
Three central examples are:
Sum 1. (Ramanujan)
p1 (4n)! 1103 + 26390n]
1= 8 X :
9801 n=0 (n!)4 3964n
p p
Algorithm 1. Let 0 := 6 ; 4 2 and y0 := 2 ; 1. Let
yn+1 := 11 ; (1 ; yn4 )1=4
+ (1 ; yn4 )1=4
and
n+1 := (1 + yn+1 )4 n ; 22n+3 yn+1 (1 + yn+1 + yn2 +1 ):
1 See http://www.cecm.sfu.ca/organics/papers/borwein/paper/html/local/ramanujan.
html for a scanned image of the bust of Ramanujan.
2 When this article was published Mathematica did not exist as a commercial product. Its
spectacular growth and that of Maple, Axiom and many other packages such as Matlab show
how quickly these tools have established themselves throughout the sciences.
Then
0 < n ; 1= < 16 4ne;24
n
and n converges to 1= quartically (that is, with order four). Example 3
p
Algorithm 2. Let s0 := 5( 5 ; 2) and 0 := 1=2. Let
sn+1 := (z + x=z25+ 1)2s
n
where
x := 5=sn ; 1 y := (x ; 1)2 + 7
and 1=5
p
z := 12 x y + y2 ; 4x3 :
Let s2 ; 5 p
n+1 := sn 2
n ; 5n n + sn (sn ; 2sn + 5) :
2
2
Then
0 < n ; 1 < 16 5n e;5
n
3 Matters Computational
I am ashamed to tell you to how many gures I carried these calcu-
lations, having no other business at the time.
Isaac Newton
Newton's embarrassment at having computed 15 digits, which he did using
the arcsinlike formula13
p 1 1
= 3 4 3 + 24 12 ; 5 25 ; 28 1 27 ; 72 1 29 ;
3
p
3 Z 14 p
= 4 + 24 x ; x2 dx
0
12 Every large calculation of digits of that we have been involved in has uncovered some
hard ware or soft ware bug. Some of these were important, like parallel processors not com-
municating with each other. Of course the best known example of large scal number theoretic
computations uncovering bugs is the Pentium story.
1:90216054::: = (1=3 + 1=5) + (1=5 + 1=7) + (1=11 + 1=13) + :::
The recent debacle concerning Intel's faulty Pentium chip surfaced because of computations
on Brun's constant performed by Thomas Nicely of Lynchburg College in Virginia. The
Pentium had a hardware aw in its oating point arithmetic that causes certain divisions
involving long strings on ones to give incorrect answers that will surface once in every billion
or so calculations of reciprocals. (This one in a billion error cost Intel about a billion dollars.)
Nicely was estimating Brun's constant, named after the Norwegian Mathematician Viggo Brun
who investigated some of its properties in 1909. This number is the sum of the reciprocals of
prime pairs. That is
The current estimate of Brun's Constant (1.90216054...) is based on a computation of all
primes up to 100 Billion and of the 224,376,048 pairs of twin primes that occur among them.
This was due to Richard Brent of the Australian National University. Prime pairs are quite
mysterious and little is known about them. It is not known, for example whether there are
innitely many though it is conjectured that this is true.
In order to extend the estimates Nicely performed all his calculations twice by dierent
algorithms. (One using the Pentium chips oating point arithmetic and the other avoiding
it.) This is quite standard since there is a long history of bugs showing up in these kinds
of very extensive computations. Previously paging errors in the Cray supercomputers had
shown up in large scale computations of Pi and now Cray uses such calculations as pert of
its testing procedures. The two answers Nicely got diered after the tenth digit and this put
a red ag. Eventually after considerable detective work Nicely discovered that the Pentium
chip was giving incorrect reciprocals for the twin primes 824,633,702,441 and 824,633,702,443
and the rest, as they say, is history.
13 See Appendix - `Additional Discussion of Newton's Formula'
is indicative both of the spirit in which people calculate digits and the fact that
a surprising number of people have succumbed to the temptation 5].
The history of eorts to determine an accurate value for the constant we
now know as is almost as long as the history of civilization itself. By 2000
B.C. both the Babylonians and the Egyptians knew to nearly two decimal
places. The Babylonians used, among others, the value 31=8 and the Egyptians
used 313=81. Not all ancient societies were as accurate, however | nearly 1500
years later the Hebrews were perhaps still content to use the value 3 14 , as the
following quote suggests.
Also, he made a molten sea of ten cubits from brim to brim, round
in compass, and ve cubits the height thereof and a line of thirty
cubits did compass it round about.
old Testament, 1 Kings 7:23
Despite the long pedigree of the problem, all nonempirical calculations have
employed, up to minor variations, only three techniques.
i) Archimedes Method The rst technique due to Archimedes 15 of Syra-
cuse (287{212 B.C.) is, recursively, to calculate the length of circumscribed and
inscribed regular 6 2n -gons about a circle
p of diameter 1. Call these quantities
an and bn . respectively. Then a0 := 2 3, b0 := 3 and, as Gauss's teacher Pfa
discovered in 1800,
14 Bill No. 246, 1897. State of Indiana:
Be it enacted by the General Assembly of the State of Indiana: It has been found
that the circular area is to the quadrant of the circumference, as the area of an
equilateral rectangle is to the square on one side.
In further proof of the value of the author's (E.J. Goodman, M.D.) proposed
contribution to education, and oered as a gift to the State of Indiana, is the
fact of his solutions of the trisection of the angle, duplication of the cube and
quadrature of the circle having been already accepted as contributions to science
by the American Mathematical Monthly, the leading exponent of mathematical
thought in this country.
The above is part of Bill No. 246, 1897, of the State of Indiana. It passed three readings in
the Indiana House in 1897. (Introduced by the House Committee on Swamp Lands.) It also
passed rst reading in the Indiana Senate, 1897. (Introduced by the Senate Committee on
Temperance.) The bill was viewed as having nancial value:
The case is perfectly simple. If we pass this bill which establishes a new and
correct value of , the author oers our state without cost the use of this discovery
and its free publication in our school textbooks, while everyone else must pay
him a royalty.
By chance Professor C.A. Waldo of Purdue was in the Senate for a reading of the bill. He
convinced Senators that the bill was nonsense and it was tabled. (Presumably it is still tabled.)
15 See http://www.cecm.sfu.ca/organics/papers/borwein/paper/html/local/archimedes.
html for a scanned image of Archimedes' Page
p
an+1 := a2a+n bbn and bn+1 := an+1 bn :
n n
Archimedes, with n = 4, obtained
71 < < 37 :
310 1
While hardly better than estimates one could get with a ruler, this is the rst
method that can be used to generate an arbitrary number of digits, and to
a nonnumerical mathematician perhaps the problem ends here. Variations on
this theme provided the basis for virtually all calculations of for the next 1800
years, culminating with a 34 digit calculation due to Ludolph van Ceulen (1540{
1610). This demands polygons with about 260 sides and so is extraordinarily
time consuming.
ii) Calculus Based Methods Calculus provides the basis for the second
technique. The underlying method relies on Gregory's series of 1671 16
Zx
arctan x = 1 +dtt2 = x ; x3 + x5 ; jxj 1
3 5
xk+1 = xk (3 ;2 yxk )
2
and so avoid divisions in the computation of py. Not only do these iterations
converge quadratically but, because Newton's method is self-correcting (a slight
perturbation in xk does not change the limit), it is possible at the kth stage to
work only to precision 2k . If division and root extraction are so implemented,
they both have bit complexity O(m(n)), in the sense that n-digit input produces
n-digit accuracy in a time bounded by a constant times the speed of multiplica-
tion. This extends in the obvious way to the solution of any algebraic equation,
with the startling conclusion that every algebraic number can be computed p (to
n-digit
p accuracy) with bit complexity O ( M ( n )). Writing down n digits of 2
or 3 7 is (up to a constant) no more complicated than multiplication.
The Schonhage-Strassen multiplication is hard to implement. However, a
multiplication with complexity O((log n)2+ n) based on an ordinary complex
(oating point) fast Fourier transform is reasonably straightforward. This is
Kanada's approach, and the recent records all rely critically on some variations
of this technique.
To see how the fast Fourier transform may be used to accelerate multi-
plication, let x := (x0 x1 x2 xn;1 ) and y := (y0 y1 y2 yn;1 ) be the
representations of two high-precision numbers in some radix b. The radix b
is usually selected to be some power of 2 or 10 whose square is less than the
largest integer exactly representable as an ordinary oating-point number on
the computer being used. Then, except for releasing each \carry", the product
z := (z0 z1 z2 zn;1 ) of x and y may be written as
z0 = x0 y0
z1 = x0 y1 + x1y0
z2 = x0 y2 + x1y1 + x2y0
..
.
zn;1 = x0 yn;1 + x1 yn;2 + + xn;1y0
..
.
z2n;3 = xn;1 yn;2 + xn;2 yn;1
z2n;2 = xn;1 yn;1
z2n;1 = 0:
Now consider x and y to have n zeros appended, so that x, y, and z all have
length N = 2n. Then a key observation may be made: the product sequence z
is precisely the discrete convolution C (x y):
;1
NX
zk = Ck(x y) = xj yk;j
j =0
where the subscript k ; j is to be interpreted as k ; j + N if k ; j is negative.
Now a well-known result of Fourier analysis may be applied. Let F (x) denote
the discrete Fourier transform of the sequence x, and let F ;1(x) denote the
inverse discrete Fourier transform of x:
;1
NX
Fk (x) := xj e;2ijk=N
j =0
1 NX ;1
Fk;1(x) := N xj e;2ijk=N :
j =0
where
q := eit:
We wish to make a few comments about modular functions in general before
restricting our attention to the particular modular function . Modular func-
tions are functions which are meromorphic in H , the upper half of the complex
plane, and which are invariant under a group of linear fractional transforma-
tions, G, in the sense that
f (g(z)) = f (z) 8g 2 G:
Additional growth conditions on f at certain points of the associated funda-
mental region (see below) are also demanded.] We restrict G to be a subgroup
of the modular group ; where ; is the set of all transformations w of the form
w(t) = at +b
ct + d
with a b c d integers and ad ; bc = 1. Observe that ; is a group under com-
position. A fundamental region 22 FG is a set in H with the property that any
element in H is uniquely the image of some element in FG under the action
of G. Thus the behaviour of a modular function is uniquely determined by its
behaviour on a fundamental region.
Modular functions are, in a sense, an extension of elliptic (or doubly periodic)
functions | functions such as sn which are invariant under linear transforma-
tions and which arise naturally in the inversion of elliptic integrals.
22 See http://www.cecm.sfu.ca/organics/papers/borwein/paper/html/local/emodular.html
on Elliptic Modular Functions
The denitions we have given above are not complete. We will be more
precise in our discussion of . One might bear in mind that much of the theory
for holds in considerably greater generality.
The fundamental region F we associate with is the set of complex numbers
F := fim t 0g \ fjre tj < 1 and
j2t 1j > 1g fre t = ;1g fj2t + 1j = 1g]:
The -group (or theta-subgroup) is the set of linear fractional transformations
w satisfying
w(t) := at +b
ct + d
where a b c d are integers and ad ; bc = 1, while in addition a and d are odd
and b and c are even. Thus the corresponding matrices are unimodular. What
makes a -modular function is the fact that is meromorphic in fim t > 0g
and that
(w(t)) := (t)
for all w in the -group, plus the fact that tends to a denite limit (possi-
bly innite) as t tend to a vertex of the fundamental region (one of the three
points (0 ;1) (0 0) (i 1)). Here we only allow convergence from within the
fundamental region.
Now some of the miracle of modular functions can be described. Largely
because every point in the upper half plane is the image of a point in F under
an element of the -group, one can deduce that any -modular function that is
bounded on F is constant. Slightly further into the theory, but relying on the
above, is the result that any two modular functions are algebraically related,
and resting on this, but further again into the eld, is the following remarkable
result. Recall that q is given by (5.9).
Theorem 1 Let z be a primitive pth root of unity for p an odd prime. Consider
the pth order modular equation for as dened by
Wp (x ) := (x ; 0 )(x ; 1 ) (x ; p): (5:11)
where
i := (zi q1=p) i < p
and
p := (qp):
Then the function Wp is a polynomial in x and (independent of q), which
has integer coecients and is of degree p + 1 in both x and .
The modular equation for usually has a simpler form in the associated
variables u := x1=8 and v := 1=8 . In this form the 5th-order modular equation
is given by
# (u v) := u6 ; v6 + 5u2 v2(u2 ; v2 ) + 4uv(1 ; u4v4 ): (5:12)
In particular
!2 (qp) = v2 and !2(q) = u2
!3 (qp) !3(q)
are related by an algebraic equation of degree p + 1.
The miracle is not over. The pth-order multiplier (for ) is dened by
p p 2
Mp(k(q) k(qp)) := KK((kk((qq)))) = !!3 ((qq)) (5:13)
3
! (q) ; 1 and y := (x ; 1) + 7:
2
3
(;q)n
1
2
n
(r) = 1
P 4 =;1
(7:3)
q n2
n=;1
p
and we can see that as r tends to innity q = e; r tends to zero and (r)
tends to 1=. In fact
p p
(r) ; 1 8 r ; 1 e; r : (7:4)
The key now is iteratively to calculate . This is the content of the next theorem.
Theorem 3 Let k0 := k(q), k1 := k(qp) and Mp := Mp(k0 k1 ) as in (5.13).
Then " 2 02 _ #
( r ) p k pk 1 k1 Mp
(p r) =
2
; r
Mp2
0
; pk +
2
Mp2 1
Mp
where _ represents the full derivative of Mp with respect to k0 . In particular,
is algebraic for rational arguments.
We know that K (k1) is related via Mp to K (k) and we know that E (k) is
related via dierentiation to K . (See (5.7) and (5.13).) Note that q ! qp corre-
sponds to r ! p2 r. Thus from (7.17) some relation like that of the above theo-
rem must exist. The actual derivation requires some careful algebraic manipu-
lation. (See 11]), where it has also been made entirely explicit for p := 2 3 4 5
and 7, and where numerous algebraic values are determined for Examples 25
(r).) In the case p := 5 we can specialize with some considerable knowledge
of quintic modular equations to get:
25 See http://www.cecm.sfu.ca/organics/papers/borwein/paper/html/local/etable.html for
some examples
Theorem 4 Let s := 1=M5(k0 k1 ). Then
p 2 p
(25r) = s2(r) ; r (s ; 5) + s(s2 ; 2s + 5) :
2
This couples with Ramanujan's quintic modular equation to provide a derivation
of Algorithm 2.
Algorithm 2 results from specializing Theorem 3 with p := 4 and coupling it
with a quartic modular equation. The quartic equation in question is just two
steps of the corresponding quadratic equation which is Legendre's form of the
arithmetic geometric mean iteration 26
In 1799, Gauss observed this purely numerically and wrote that this result
"will surely open a whole new eld of analysis." , namely:
p
k1 = 12+kk :
An algebraic p-th order algorithm for is derived from coupling Theorem 3
with a pth-order modular equation. The substantial details which are skirted
here are available in 11].
8 Ramanujan's sum
This amazing sum,
p 1 (4n)! 1103 + 26390n]
1= 8 X
9801 n=0 (n!)4 3964n
is a specialization (N = 58) of the following result, which gives reciprocal series
for in terms of our function alpha and related modular quantities27.
Theorem 5 1 ; 1 ; 1 ; 3 d (N )
1 =X 4 n 2 n 4 n n
x2n;1 (8:1)
n=0 (n!)3 N
where,
0 2 12 ;12 1
xN := 4(1kN+(kkN2 ))2 := gN +2 gN :
N
with " ;N1 N ;12p #
p gN12 ; gN;12
( N ) x
dn (N ) = 1 + k2 ; 4 gN + n N
N 2
26 See Appendix - `The Arithmetic-Geometric Mean Iteration'
27 See Appendix - `Ramanujan type series'
and p
kN := k(e; N ) gN12 = (kN0 )2=(2kN ):
Here cn is the rising factorial: cn := c(c + 1)(c + 2) (c + n ; 1):
Some of the ingredients for the proof of Theorem 5, which are detailed in
11], are the following. Our rst step is to write (7.2) as a sum after replacing
the E by K and dK=dk using (5.7). One then uses an identity of Clausen's
which allows one to write the square of a hypergeometric function 2 F1 in terms
of a generalized hypergeometric 3 F2, namely, for all k one has
2 2 !
(1 + k2) 2K(k) = F
3 2
1 3 1 2
4 4 2 1 1 g12 + g;12
2
1 ;1 ;3 ;1
X 2
g12 +g;12 n
4 n 4 n 2 n
= (1)n(1)n n! :
n=0
Here g is related to k by
4k(k0)2 = g12 + g;12 ;1
(1 + k2 )2 2
as required in Theorem 5. We have actually done more than just use Clausen's
identity, we have also transformed it once using a standard hypergeometric
substitution due to Kummer. Incidentally, Clausen was a nineteenth-century
mathematician who, among other things, computed 250 digits of in 1847
using Machin's formula. The desired formula (8.1) is obtained on combining
these pieces.
Even with Theorem 5, our work is not complete. We still have to compute
p58
k58 := k(e; ) and 58 := (58):
In fact p !
g = 292+ 5
2
58
9 Sources
References 7], 11], 19], 26], 36], and 37] relate directly to Ramanujan's work.
References 2], 8], 9], 10], 12], 22], 24], 27], 29], and 31] discuss the com-
putational concerns of the paper.
Material on modular functions and special functions may be pursued in 1],
6], 9], 14], 15], 18], 20], 28], 34], 38], and 39]. Some of the number-theoretic
concerns are touched on in 3], 6], 9], 11], 16], 23], and 35].
Finally, details of all derivations are given in 11].
References
1] M. Abramowitz and I. Stegun, Handbook of Mathematical Functions,
Dover, New York, 1964.
2] D.H. Bailey, The computation of to 29,360,000 decimal digits us-
ing Borweins' quartically convergent algorithm, Math. Comput., 50
(1988) 283{96.
29 Computation: Series Algorithms
1 = X
1
;2n3 42n + 5
n 212n+4 (Ramanujan)
n=0
1 = X
N ; 3
2n 42n + 5 aN
n=0
n 212n+4 + "N = bN + "N
where bN = 212N +4 is an exact power of two. aN is an integer of roughly the same size.
The algorithm can be restarted if aN and bN are stored. (So a few extra digits is easy.)
Complexity is O((log n)2 M (n)), but in practice it's good. (Still needs an FFT.)
Error checking by congruences.
3] |, Numerical results on the transcendence of constants involving ,
e, and Euler's constant, Math. Comput., 50 (1988) 275{81.
4] A. Baker, Transcendental Number Theory, Cambridge Univ. Press,
London, 1975.
5] P. Beckmann, A History of Pi, 4th ed., Golem Press, Boulder, CO,
1977.
6] R. Bellman, A Brief Introduction to Theta Functions, Holt, Reinhart
and Winston, New York, 1961.
7] B.C. Berndt, Modular Equations of Degrees 3, 5, and 7 and Associ-
ated Theta Functions Identities, chapter 19 of Ramanujan's Second
Notebook, Springer | Ramanujan's Notebooks, Part III, Springer-
Verlag, New York, 1991.
8] A. Borodin and I. Munro, The Computational Complexity of Alge-
braic and Numeric Problems, American Elsevier, New York, 1975.
9] J.M. Borwein and P. B. Borwein, The arithmetic-geometric mean and
fast computation of elementary functions, SIAM Rev., 26 (1984) 351{
365.
10] |, An explicit cubic iteration for , BIT, 26 (1986) 123{126.
11] |, Pi and the AGM | A Study in Analytic Number Theory and
Computational Complexity, Wiley, N.Y., 1987.
12] R.P. Brent, Fast multiple-precision evaluation of elementary func-
tions, J. ACM 23 (1976) 242{251.
13] E.O. Brigham, The Fast Fourier Transform, Prentice-Hall, Englewood
Clis, N.J., 1974.
14] A. Cayley, An elementary Treatise on Elliptic Functions, Bell and
Sons, 1885 reprint Dover, 1961.
15] |, A memoir on the transformation of elliptic functions, Phil. Trans.
T., 164 (1874) 397{456.
16] D.V. Chudnovsky and G.V. Chudnovsky, Pad&e and Rational Approx-
imation to Systems of Functions and Their Arithmetic Applications,
Lecture Notes in Mathematics 1052, Springer, Berlin, 1984.
17] H.R.P. Ferguson and R.W. Forcade,Generalization of the Euclidean
algorithm for real numbers to all dimensions higher than two, Bull.
AMS, 1 (1979) 912{914.
18] C. F. Gauss, Werke, Gottingen 1866{1933, Be 3, pp. 361{403.
19] G.H. Hardy, Ramanujan, Cambridge Univ. Press, London,1940.
20] L.V. King, On The Direct Numerical Calculation of Elliptic Functions
and Integrals, Cambridge University Press, 1924.
21] F. Klein, Development of Mathematics in the 19th Century, 1928,
TRans. Math. Sci. Press, R. Hermann ed., Brookline, MA, 1979.
22] D. Knuth, The Art of Computer Programming, Vol. 2: Seminumerical
Algorithms, Addison-Wesley, Reading, MA, 1981.
23] F. Lindemann, Uber die Zahl , Math. Ann., 20 (1882) 213{225.
24] G. Miel, On calculations past and present: the Archimedean algo-
rithm, Amer. Math. Monthly, 90 (1983) 17{35.
25] D.J. Newman, Rational Approximation Versus Fast Computer Meth-
ods, in Lectures on Approximation and Value Distribution, Presses
de l'Universit&e de Montreal, 1982, pp. 149{174.
26] S. Ramanujan. Modular equations and approximations to . Quart.
J. Math. 45 (1914) 350{72.
27] E. Salamin. Computation of using arithmetic-geometric mean.
Math. Comput. 30 (1976) 565{570.
28] B. Schoenberg, Elliptic Modular Functions, Springer, Berlin, 1976.
29] A. Schonhage and V. Strassen, Schnelle Multiplikation Grosser
Zahlen, Computing, 7 (1971) 281{292.
30] D. Shanks, Dihedral quartic approximations and series for , J. Num-
ber Theory, 14 (1982) 394{423.
31] D. Shanks and J.W. Wrench, Calculation of to 100,000 decimals,
Math. Comput., 16 (1962) 76{79.
32] W. Shanks, Contributions to Mathematics Comprising Chiey of the
Rectication of the Circle to 607 Places of Decimals, G. Bell, London,
1853.
33] Y. Tamura and Y. Kanada, Calculation of to 4,196,393, decimals
based on Gauss-Legendre algorithm, preprint (1983).
34] J. Tannery and J. Molk, Fonctions Elliptiques, vols 1 and 2, 1893
reprint Chelsea, New York, 1972.
35] S. Wagon, Is normal?, The Math. Intelligencer, 7 (1985) 65{67.
36] G.N. Watson, Some singular moduli (1), Quart. J. Math., 3 (1932)
81{98.
37] |, The nal problem: an account of the mock theta functions, J.
London Math. Soc., 11 (1936) 55{80.
38] H. Weber, Lehrbuch der Algebra, Vol. 3, 1908: reprint Chelsea, New
York, 1980.
39] E.T. Whittaker and G.N. Watson, A Course of Modern Analysis, 4th
ed., Cambridge Univ. Press, London, 1927.
p4 ;
y13 = 11+; p4 11;;yy12124 a13 = (1 + y13 )4 a12 ; 227 y13 1 + y13 + y13 2
4
p4 ;
y14 = 11+; p4 11;;yy13134 a14 = (1 + y14 )4 a13 ; 229 y14 1 + y14 + y14 2
4
; p ;y 4 ;
y15 = p ;y14144
1 4 1
1+ 4 1
a15 = (1 + y15 )4 a14 ; 231 y15 1 + y15 + y15 2
p4 ;
y16 = 11+; p4 11;;yy15154 a16 = (1 + y16 )4 a15 ; 233 y16 1 + y16 + y16 2
4
p4 ;
y17 = 11+; p4 11;;yy16164 a17 = (1 + y17 )4 a16 ; 235 y17 1 + y17 + y17 2
4
p4 ;
y18 = 11+; p4 11;;yy17174 a18 = (1 + y18 )4 a17 ; 237 y18 1 + y18 + y18 2
4
a18 ;1
11.2 Kanada
The two most recent record computations were performed by Yasumasa Kanada
and his colleagues during 1995. It is worth emphasizing that each of his com-
putations eectively performs the equivalent of a few hundred full precision
multiplications. A single such multiplication performed on the same machine
but without using FFT ideas would take several years.
The details follow. More is available at the pi site including more analysis
of the digits.
232 Digits: Two independent calculations based on two dierent algorithms
generated 4,294,967,296 (= 232) decimal digits of pi and the two generated se-
quences matched 4,294,967,286 decimal digits, e.g., 10 decimal digits dierence.
Then we are declaring 4,294,960,000 decimal digits as the new world record.
Main program run :
Job start (1 ; st) : 28thJuly199522 : 59
Job end (1 ; st) : 31stJuly199507 : 42
Elapsed time (1 ; st) : 56 : 44 : 24
Vector CPU (1 ; st) : 67 : 33 : 04
Job start (2 ; nd) : 04thAug:199520 : 38
Job end (2 ; nd) : 07stAug:199505 : 35
Elapsed time (2 ; nd) : 56 : 57 : 11
Vector CPU (2 ; nd) : 66 : 15 : 37
Main memory : 1792:75MB
ES memory : 25120MB
Disk storage : 2GB 2 = 4GB (as for the intermediate data storage)
Algorithm : Borweins0 4 ; th order convergent algorithm
Verication program run :
Job start (1 ; st) : 11thAug:199521 : 31
Job end (1 ; st) : 14stAug:199515 : 54
Elapsedtime (1 ; st) : 66 : 23 : 29
VectorCPU (1 ; st) : 77 : 14 : 59
Job start (2 ; nd) : 25thAug:199523 : 12
Job end (2 ; nd) : 28stAug:199515 : 09
Elapsed time (2 ; nd) : 63 : 57 : 22
Vector CPU (2 ; nd) : 75 : 10 : 29
Main memory : 1792:75 MB
ES memory : 26152 MB
Disk storage : 2GB 3 = 6GB (as for the intermediate data storage)
Algorithm : Gauss ; Legendre algorithm
12 Appendix: Landmarks
Francois Viete (1540{1603)
r s r v
u s r
2 = 1 1 + 1 1u
t1 + 1 1 + 1 1
2 2 2 2 2 2 2 2 2
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; (1593)
John Wallis (1616{1703)
= 2 2 4 4 6 6 8 8
2 1 3 3 5 5 7 7 9
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; (1655)
William Brouncker (1620{1684)
= 4
1 + 2+ 1 925
2+ 2+
James Gregory (1638{1675), Gottfried Wilhelm Leibnitz (1646{1716)
= 1 ; 1 + 1 ; 1 +
4 3 5 7
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; (1671)
is equal to the blue area in the circle shown above. Claim: 241 3 4 3 is the area
of the red triangle within the circle.
Areaoftriangle = 12 :base:height (14.2)
(4) = 12 : 21 cos( 6 ): 12 sin( 6 ) (14.3)
p
(5) = 24 1 :(3 3 ) (6) (14.4)
4
Observation : The blue area + the read area is one sixth the area of the
circle.
Deduction:
1 : 3 3 + Z 14 px ; x2dx (7)
p
( 21 )2
6 = 24 4 (14.5)
0
3 3
p Z 41 p
= 4 + 24 x ; x2dx (8) (14.6)
0
15 Appendix: Frauds
Gregory's series for , truncated at 500,000 terms gives to forty places
X (;1)k;1
500000
4 2k ; 1
k=1
= 3:141590653589793240462643383269502884197:
Only the underlined digits are wrong. This is explained by the following
Theorem.
15.1 Theorem
For integer N divisible by 4 the following asymptotic expansion holds:
; 2 X (;1)k;1 X E2m
N=2 1
2 k=1
2k ; 1 m=0
N 2m+1
= N1 ; N13 + N55 ; N617 +
where the coecients are the even Euler numbers 1, -1, 5, -61, 1385, -50521.
Gregory's series requires more terms than there are particles in the universe
to compute 100 digits of .
However, with N = 200,000 and correcting using the rst thousand even
Euler numbers gives over 5,000 digits of .
See Pi, Euler numbers and asymptotic expansions by J. Borwein, P. Borwein
K. Dilcher in the MAA Monthly 96 (1989) 681-687.
15.2 Excessive Fraud
Sum. (correct to over 42 billion digits)
0 12
@ 51 X ;
1
n
A =: : 2
10 e 1010
n=;1
The sum arises from an application of Poisson summation or equivalently as a
modular transformation of a theta function.
15.3 Conjecture
No one will ever know the 101000th digit of (or the 1051th).
In 1799, Gauss observed this purely numerically and wrote that this result
will surely open a whole new eld of analysis.
(3n)!
F 1 2
2 1 3 3
(n!)3 33n (1 ; x3)n
n=0
The convergence is cubic.
Proof: The proof is opaque. It works because 2 F1(1=3 2=3 1 x) satises
1 1
y + x + x ; 1 y0 ; 9x(14; x) y = 0
00
3!
= 1 +3 2x 2F1 13 32 1 11+;2xx
Gs(x) := 2F1 (; 21 ; s 12 + s 1 x2 ):
Then
p p
Gs(x)Fs( 1 ; x2) + Fs(x)Gs( 1 ; x2)
p
cos(s)
;Fs (x)Fs( 1 ; x ) = 1 2(1
2
+ 2s)
and
Gs(x) = (1 ; x2 )Fs(x) + x(1 ; x ) d Fs(x)2
1 + 2s d x
p
With x := 1= 2 we get
p
2 F (1=p2)F 0(1=p2) = 1
cos(s) s s
If we can compute Fs iteratively we can compute Fs0 and i= by a second
iteration. These are four particularly interesting cases.
s=0 Gaussian AGM.
s = 1=6 Cubic AGM.
s = 1=3 The absolute invariant J.
s = 1=4 Borchardt
p type iteration
Inverting the ratios Fs(x)=Fs( 1 ; x2) gives elliptic modular nctions. Which
reduces much of this to an algebraic theory. Finding and proving these iterations
can ( at least in principal) be eected entirely computationally.
where
p
A := 212175710912 61p + 1657145277365
B := 13773980892672 61 +p107578229802750
C := 5280(236674 + 30303 61)]3:
This series adds roughly 25 digits per term. These series are of the form
X1 (6 n )! 1
p;j (t)
(a(t) + nb(t)) (3n)!(n!)3 (j (t))n =
n=0
where
p
b(t) = t(1728 ; j (t))
a(t) = b(6t) 1 ; E 4 (t) 6
E6 (t) E2 (t) ; pt
j (t) = E 31728 E43(t)
4 (t) ; E6 (t)
2
X1 n
E2(q) = 1 ; 24 1 nq
n=1 ; q
n
1 n3 q n
X
E4(q) = 1 + 240
n=1 1 ; q
n
X1 n5 q n
E6(q) = 1 ; 540 1 ; qn
n=1
p
q = ;e; t:
Here t is the appropriate discriminant, j is the \absolute invariant", and E2 ,
E4 and E6 are Eisenstein series. There is an unlimited number of such series
with increasingly more rapid convergence. The price is that one must deal with
more complicated algebraic irrationalities.
A class number p eld will involve pth degree algebraic integers as the con-
stants A = a(t), B = b(t) and C = c(t) in the series.
The largest class number three example with d = ;907 gives 37 or 38 digits
per term.
The largest class number four example with d = ;1555 is
p 1 (6n)! A + nB
;C 3 = X
n=0 (3n)!(n!)
3 C 3n
where