Documente Academic
Documente Profesional
Documente Cultură
AUSTRALIAN COLLOQUIA
CECM
Centre for Experimental &
Constructive Mathematics
www.cecm.sfu.ca/~ jborwein/talks.html
personal/jborwein/pi cover.html
“My name is
Piscine Molitor Patel
known to all as Pi Patel
π = 3.14∗
4
Why π is not 22
7
5
In this case, the indefinite integral provides im-
mediate reassurance. We obtain
Z t 4
x (1 − x)4
(2) 2
dx =
0 1+x
1 7 2 6 4
t − t + t5 − t3 + 4 t − 4 arctan (t) ,
7 3 3
as differentiation easily confirms, and the fun-
damental theorem of calculus proves (1).
6
Combine this with (1) and (3) to derive: 223/71
< 22/7 − 1/630 < π < 22/7 − 1/1260 < 22/7
and so re-obtain Archimedes famous compu-
tation
10 10
(5) 3 <π<3 .
71 70
7
The Childhood of Pi
8
Pi(es)
9
The first rigorous mathematical calculation of
π was also due to Archimedes, who used a bril-
liant scheme based on doubling inscribed and
circumscribed polygons (6 7→ 12 7→ 24 7→
10 < π < 3 1 .
48 7→ 96) to obtain the bounds 3 71 7
11
Precalculus π Calculations
12
Ludolph’s Rebuilt Tombstone in Leiden
20
Newton’s arcsin
23
The question of whether π is algebraic was set-
tled in 1882, when Lindemann proved that π
is transcendental.
24
The Irrationality of π
26
• With the development of computer tech-
nology in the 1950s, π was computed to
thousands and then millions of digits. These
computations were facilitated by the dis-
covery of advanced algorithms for the un-
derlying high-precision arithmetic operations.
27
Ballantine’s (1939) Series for π
30
Pi in the Digital Age
31
One of these series is the remarkable:
√ ∞
1 2 2 X (4k)! (1103 + 26390k)
=
π 9801 k=0 (k!)43964k
(14)
Each term of this series produces an additional
eight correct digits in the result. When Gosper
used this formula to compute 17 million digits
of (the continued fraction for) π in 1985, this
concluded the first proof of (14)!
32
The Chudnovskys implemented this formula us-
ing a clever scheme that enabled them to uti-
lize the results of an initial level of precision to
extend the calculation to even higher precision.
33
• While the Ramanujan and Chudnovsky se-
ries are considerably more efficient than
classical formulas, they share the property
that the number of terms needed increases
linearly with the number of digits desired.
34
The Salamin–Brent algorithm is:
√
Set a0 = 1, b0 = 1/ 2 and s0 = 1/2. Calculate
ak−1 + bk−1 q
ak = , bk = ak−1bk−1
2
ck = a2
k − b 2,
k sk = sk−1 − 2k ck
2a2k.
(16) and compute pk =
sk
35
In 1985, my brother Peter and I discovered
other algorithms of this type.
√
A1: set a0 = 1/3 and s0 = ( 3 − 1)/2. Iterate
3
rk+1 =
1 + 2(1 − s3k ) 1/3
rk+1 − 1
sk+1 =
2
and
2
ak+1 = rk+1 ak − 3k (rk+1
2 − 1).
1+ 4
1 − y0 4
p
1− 4
1 − y1 4 ¡ ¢
y2 = p , a2 = a1 (1 + y2 )4 − 25 y2 1 + y2 + y2 2
1+ 4
1 − y1 4
p
1− 4
1 − y2 4 ¡ ¢
y3 = p , a3 = a2 (1 + y3 )4 − 27 y3 1 + y3 + y3 2
1+ 4
1 − y2 4
p
1− 4
1 − y3 4 ¡ ¢
y4 = p , a4 = a3 (1 + y4 )4 − 29 y4 1 + y4 + y4 2
1+ 4
1 − y3 4
p
1− 4
1 − y4 4 ¡ ¢
y5 = p , a5 = a4 (1 + y5 )4 − 211 y5 1 + y5 + y5 2
1+ 4
1 − y4 4
p
1− 4
1 − y5 4 ¡ ¢
y6 = p , a6 = a5 (1 + y6 )4 − 213 y6 1 + y6 + y6 2
1+ 4
1 − y5 4
p
1− 4
1 − y6 4 4
¡ ¢
y7 = p 15
, a7 = a6 (1 + y7 ) − 2 y7 1 + y7 + y7 2
1+ 4
1 − y6 4
p
1− 4
1 − y7 4 4
¡ ¢
y8 = p 17
, a8 = a7 (1 + y8 ) − 2 y8 1 + y8 + y8 2
1+ 4
1 − y7 4
p
1− 4
1 − y8 4 4
¡ ¢
y9 = p 19
, a9 = a8 (1 + y9 ) − 2 y9 1 + y9 + y9 2
1+ 4
1 − y8 4
p
1− 4
1 − y9 4 ¡ ¢
y10 = p , a10 = a9 (1 + y10 )4 − 221 y10 1 + y10 + y10 2
1+ 4
1 − y9 4
37
p
1− 4
1 − y10 4 ¡ ¢
y11 = p , a11 = a10 (1 + y11 )4 − 223 y11 1 + y11 + y11 2
1+ 4
1 − y10 4
p
1− 4
1 − y11 4 ¡ ¢
y12 = p , a12 = a11 (1 + y12 )4 − 225 y12 1 + y12 + y12 2
1+ 4
1 − y11 4
p
1− 4
1 − y12 4 ¡ ¢
y13 = p , a13 = a12 (1 + y13 )4 − 227 y13 1 + y13 + y13 2
1+ 4
1 − y12 4
p
1− 4
1 − y13 4 ¡ ¢
y14 = p , a14 = a13 (1 + y14 )4 − 229 y14 1 + y14 + y14 2
1+ 4
1 − y13 4
p
1− 4
1 − y14 4 ¡ ¢
y15 = p , a15 = a14 (1 + y15 )4 − 231 y15 1 + y15 + y15 2
1+ 4
1 − y14 4
p
1− 4
1 − y15 4 ¡ ¢
y16 = p , a16 = a15 (1 + y16 )4 − 233 y16 1 + y16 + y16 2
1+ 4
1 − y15 4
p
1− 4
1 − y16 4 4
¡ ¢
y17 = p 35
, a17 = a16 (1 + y17 ) − 2 y17 1 + y17 + y17 2
1+ 4
1 − y16 4
p
1− 4
1 − y17 4 4
¡ ¢
y18 = p 37
, a18 = a17 (1 + y18 ) − 2 y18 1 + y18 + y18 2
1+ 4
1 − y17 4
p
1− 4
1 − y18 4 ¡ ¢
y19 = p , a19 = a18 (1 + y19 )4 − 239 y19 1 + y19 + y19 2
1+ 4
1 − y18 4
p
1− 4
1 − y19 4 ¡ ¢
y20 = p , a20 = a19 (1 + y20 )4 − 241 y20 1 + y20 + y20 2 .
1+ 4
1 − y19 4
38
Then the transcendental number
Pi
1
a20
Kirk asks:
40
• This algorithm, together with the Salamin–
Brent scheme, has been employed by Ya-
sumasa Kanada in Tokyo in various com-
putations of π over the past 15 years or so,
including 200 billion decimal digits in 1999.
41
The First Million Digits of π
• Pi as a random walk.
42
Modern π Calculations
43
Back to the Future
massive computation.
45
• This used a 1 Tbyte main memory sys-
tem, as the previous computation, yet got
six times as many digits. Hex and decimal
evaluations included, it ran 600 hours on
a 64-node Hitachi, the main segment at
nearly 1 Tflop/sec.
Yasumasa Kanada
46
Why Pi?
47
• Beyond practical considerations is the abid-
ing interest in the fundamental question of
the normality (digit randomness) of π.
48
Decimal Digit Occurrences
0 99999485134
1 99999945664
2 100000480057
3 99999787805
4 100000357857
5 99999671008
6 99999807503
7 99999818723
8 100000791469
9 99999854780
Total 1000000000000
49
Hex Digit Occurrences
0 62499881108
1 62500212206
2 62499924780
3 62500188844
4 62499807368
5 62500007205
6 62499925426
7 62499878794
8 62500216752
9 62500120671
A 62500266095
B 62499955595
C 62500188610
D 62499613666
E 62499875079
F 62499937801
Total 1000000000000
50
• In retrospect, I wonder why in antiquity π
was not measured to an accuracy in excess
of 22/7?
51
Discovering the Cubic & Quartic Iterations
53
• At this point we could have used known re-
sults only to prove the value of α(1), α(2)
and α(3). Those for α(5) and α(7) re-
mained conjectural.
Then
55
After about six weeks, it transpired that the
package’s the square root algorithm was
badly flawed, but only if run with an odd
precision of more than sixty digits!
56
Computing Individual Digits of π
58
For example, the millionth hexadecimal digit
(four millionth binary digit) of π can be found
in under a minute on a present computer.
∞
X µ ¶
1 4 2 1 1
π= i 8i + 1
− − −
i= 0 16 8i + 4 8i + 5 8i + 6
(19)
which was discovered numerically in the form
using integer relation methods for several months
in CECM:
1 5 1 1
π = 4F(1, ; , − ) + 2 tan−1( ) − log 5
4 4 4 2
60
In 1997, Fabrice Bellard of INRIA computed
152 binary digits of π starting at the trillionth
position.
61
In 1998 Colin Percival, a 17-year-old student at
Simon Fraser University, utilized 25 machines
to calculate first the five trillionth hexadecimal
digit, and then the ten trillionth hex digit.
106 26C65E52CB4593
107 17AF5863EFED8D
108 ECB840E21926EC
109 85895585A0428B
1010 921C73C6838FB2
1011 9C381872D27596
1.25 × 1012 07E45733CC790B
2.5 × 1014 E6216B069CB6C1
62
BBP Formulas
63
We can write
( )
Xd
2 d−k X 2d−k
∞
{2d log 2} = +
k k
k=0 k=d+1
( ) ∞
Xd
2d−k mod k X 2d−k
(22) = + .
k k
k=0 k=d+1
64
One question that arose in the wake of this
discovery is whether there is a formula of this
type and an associated computational scheme
to compute individual decimal digits of π.
65
David Bailey
∞
2 X 1 n 243 405
π2 = −
27 k=0 39k (12k + 1)2 (12k + 2)2
81 27 72
− − −
(12k + 4)2 (12k + 5)2 (12k + 6)2
9 9 5
− − −
(12k + 7)2 (12k + 8)2 (12k + 10)2
1 o
+
(12k + 11)2
66
. . . Life of Pi.
67