-
Area of the circle = π × area of the shaded square
The mathematical constant π is a real number which is defined as the ratio of a circle's circumference (Greek περιφέρεια, periphery) to its diameter in Euclidean geometry, and which is in common use in mathematics, physics, and engineering. The name of the Greek letter π is pi (pronounced pie) in English. This spelling can be used in typographical contexts where the Greek letter is not available. π is also known as Archimedes' constant (not to be confused with Archimedes' number) and Ludolph's number.
In Euclidean plane geometry, π may be defined either as the ratio of a circle's circumference to its diameter, or as the ratio of a circle's area to the area of a square whose side is the radius. Advanced textbooks define π analytically using trigonometric functions, for example as the smallest positive x for which sin(x) = 0, or as twice the smallest positive x for which cos(x) = 0. All these definitions are equivalent.
The numerical value of π, truncated to 50 decimal places (sequence A000796 in OEIS), is:
- 3.14159 26535 89793 23846 26433 83279 50288 41971 69399 37510
See the links below for more digits.
Although this precision is more than sufficient for use in engineering and science, the exact value of π has an infinite decimal expansion: its decimal places never end. Much effort over the last few centuries has been put into computing more digits and investigating the number's properties. Despite much analytical work, in addition to supercomputer calculations that have determined over 1 trillion digits of π, no pattern in the digits has ever been found. Digits of π are available from multiple resources on the Internet, and a regular personal computer can compute billions of digits with available software.
Properties
π is an irrational number; that is, it cannot be written as the ratio of two integers, as was proven in 1761 by Johann Heinrich Lambert.
π is also transcendental, as was proven by Ferdinand von Lindemann in 1882. This means that there is no polynomial with rational coefficients of which π is a root. An important consequence of the transcendence of π is the fact that it is not constructible. Because the coordinates of all points that can be constructed with ruler and compass are constructible numbers, it is impossible to square the circle, that is, it is impossible to construct, using ruler and compass alone, a square whose area is equal to the area of a given circle.
Formulae
Geometry
π appears in many formulæ in geometry involving circles and spheres.
| Geometrical shape |
Formula |
| Circumference of circle of radius r and diameter d |
 |
| Area of circle of radius r |
 |
| Area of ellipse with semiaxes a and b |
 |
| Volume of sphere of radius r and diameter d |
 |
| Surface area of sphere of radius r |
 |
| Volume of cylinder of height h and radius r |
 |
| Surface area of cylinder of height h and radius r |
 |
| Volume of cone of height h and radius r |
 |
| Surface area of cone of height h and radius r |
 |
(All of these are a consequence of the first one, as the area of a circle can be written as A = ∫(2πr)dr ("sum of annuli of infinitesimal width"), and others concern a surface or solid of revolution.)
Also, the angle measure of 180° (degrees) is equal to π radians.
Analysis
Many formulæ in analysis contain π, including infinite series (and infinite product) representations, integrals, and so-called special functions.






- and generally, ζ(2n) is a rational multiple of π2n for positive integer n







- where the path of integration is a closed curve around the origin, traversed in the standard counterclockwise direction.
Continued fractions
π has many continued fractions representations, including:
(Other representations are available at The Wolfram Functions Site.)
Number theory
Some results from number theory:
- The probability that a randomly chosen integer is square-free is 6/π2.
- The average number of ways to write a positive integer as the sum of two perfect squares (order matters) is π/4.
Here, "probability", "average", and "random" are taken in a limiting sense, e.g. we consider the probability for the set of integers {1, 2, 3,…, N}, and then take the limit as N approaches infinity.
The fact (note the order to which the number approaches an integer) that

or equivalently,

can be explained by the theory of complex multiplication.
Dynamical systems and ergodic theory
Consider the recurrence relation

Then for almost every initial value x0 in the unit interval [0,1],

This recurrence relation is the logistic map with parameter r = 4, known from dynamical systems theory. See also: ergodic theory.
Physics
The number π appears routinely in equations describing fundamental principles of the universe, due in no small part to its relationship to the nature of the circle and, correspondingly, spherical coordinate systems.





Probability and statistics
In probability and statistics, there are many distributions whose formulæ contain π, including:


Note that since
, for any pdf f(x), the above formulæ can be used to produce other integral formulae for π.
A semi-interesting empirical approximation of π is based on Buffon's needle problem. Consider dropping a needle of length L repeatedly on a surface containing parallel lines drawn S units apart (with S > L). If the needle is dropped n times and x of those times it comes to rest crossing a line (x > 0), then one may approximate π using:

[As a practical matter, this approximation is poor and converges very slowly.]
Another approximation of π is to throw points randomly into a quarter of a circle with radius 1 that is inscribed in a square of length 1. Pi, the area of a unit circle, is then approximated as 4*(points in the quarter circle)/(total points).
History
-
- For the history of the use of the symbol π, see History of pi.
- See also the chronology of computations of pi for the history of known numerical approximations.
The value of π has been known in some form since antiquity. As early as the 19th century BC, Babylonian mathematicians were using π=25/8, which is within 0.5% of the exact value.
It is sometimes claimed that the Bible states that π=3, based on a passage in 1 Kings 7:23 giving measurements for a round basin as having a 10 cubit diameter and a 30 cubit circumference. Rabbi Nehemiah explained this by the diameter being from outside to outside while the circumference was the inner brim; but it may suffice that the measurements are given in round numbers. Also, the basin may not have been exactly circular.
It is interesting to note, however, that the word for circumference ("line") in 1 Kings 7:23 is spelled wrong in the Hebrew. Now numbers were written as letters in Hebrew as follows:
Aleph=1, Beth=2, Gimel=3, Daled=4, Hea=5, Vav=6, Zain=7, CHet=8, Tet=9, Yod=10, Caf=20, Lammed=30, Mem=40, Noon=50, Samech=60, Aiin=70, Pea=80, TSadik=90, Qof=100, Reish=200, Shin=300, Tav=400
If you take this misspelling of line and divide by the spelling used everywhere else, you get:
Qof (100) + Vav (6) + Hea (5)
Qof (100) + Vav (6)
which is 111/106. It turns out that 3 * 111/106 is more accurate than most approximations of pi used in the ancient world, resulting in a value of 3.1514094... Multiplying that fraction by the 30 given (which the text would seem to allow if it were true, i.e. 30 "cubit-circumference-lines") gives a circumference instead of:
31.415094339622641509433962264151
Numerical approximations
- Main article: History of numerical approximations of π
Due to the transcendental nature of π, there are no closed expressions for the number in terms of algebraic numbers and functions. Therefore numerical calculations must use approximations of π. For many purposes, 3.14 or 22/7 is close enough, although engineers often use 3.1416 (5 significant figures) or 3.14159 (6 significant figures) for more accuracy. The approximations 22/7 and 355/113, with 3 and 7 significant figures respectively, are obtained from the simple continued fraction expansion of π. The approximation 355/113 (3.1415929…) is the very best one that may be expressed with a three-digit numerator and denominator.
The earliest numerical approximation of π is almost certainly the value 3. In cases where little precision is required, it may be an acceptable substitute. That 3 is an underestimate follows from the fact that it is the ratio of the perimeter of an inscribed regular hexagon to the diameter of the circle.
An Egyptian scribe named Ahmes wrote the oldest known text to give an approximate value for π. The Rhind Mathematical Papyrus dates from the Egyptian Second Intermediate Period—though Ahmes stated that he copied a Middle Kingdom papyrus—and describes the value in such a way that the result obtained comes out to 256 divided by 81 or 3.160.
The Chinese mathematician Liu Hui computed π to 3.141014 (good to three decimal places) in AD 263 and suggested that 3.14 was a good approximation.
The Indian mathematician and astronomer Aryabhata gave an accurate approximation for π. He wrote "Add four to one hundred, multiply by eight and then add sixty-two thousand. The result is approximately the circumference of a circle of diameter twenty thousand. By this rule the relation of the circumference to diameter is given." In other words (4+100)×8 + 62000 is the circumference of a circle with diameter 20000. This provides a value of π = 62832/20000 = 3.1416, correct when rounded off to four decimal places.
The Chinese mathematician and astronomer Zu Chongzhi computed π to be between 3.1415926 and 3.1415927 and gave two approximations of π, 355/113 and 22/7, in the 5th century.
The Iranian mathematician and astronomer, Ghyath ad-din Jamshid Kashani, 1350-1439, computed π to 9 digits in the base of 60, which is equivalent to 16 decimal digits as:
- 2 π = 6.2831853071795865
The German mathematician Ludolph van Ceulen (circa 1600) computed the first 35 decimals. He was so proud of this accomplishment that he had them inscribed on his tombstone.
The Slovene mathematician Jurij Vega in 1789 calculated the first 140 decimal places for π of which the first 126 were correct [1] and held the world record for 52 years until 1841, when William Rutherford calculated 208 decimal places of which the first 152 were correct. Vega improved John Machin's formula from 1706 and his method is still mentioned today.
The English amateur mathematician William Shanks, a man of independent means, spent over 20 years calculating π to 707 decimal places (accomplished in 1873). His routine was as follows: he would calculate new digits all morning; and then he would spend all afternoon checking his morning's work. His work was made possible by the recent invention of the logarithm and its tables by Napier and Briggs. This was apparently the longest expansion of π until the advent of the electronic digital computer. In 1944, D. F. Ferguson (with the aid of a mechanical desk calculator) found that Shanks had made a mistake in the 528th decimal place, and that all succeeding digits were fallacious.
In the early years of the computer, the first expansion of π to 100,000 decimal places was computed by Maryland mathematician Dr. Daniel Shanks and his team at the United States Naval Research Laboratory (N.R.L.) in 1961. Dr. Shanks's son Oliver Shanks, also a mathematician, states that there is no family connection to William Shanks, and in fact, his family's roots are in Central Europe.
Daniel Shanks and his team used two different power series for calculating the digital of π. For one it was known that any error would produce a value slightly high, and for the other, it was known that any error would produce a value slightly low. And hence, as long as the two series produced the same digits, there was a very high confidence that they were correct. The first 100,000 digits of π were published by the N.R.L.
None of the formulæ given above can serve as an efficient way of approximating π. For fast calculations, one may use formulæ such as Machin's:

together with the Taylor series expansion of the function arctan(x). This formula is most easily verified using polar coordinates of complex numbers, starting with

Formulæ of this kind are known as Machin-like formulae.
Many other expressions for π were developed and published by the incredibly-intuitive Indian mathematician Srinivasa Ramanujan. He worked with mathematician Godfrey Harold Hardy in England for a number of years.
Extremely long decimal expansions of π are typically computed with the Gauss-Legendre algorithm and Borwein's algorithm; the Salamin-Brent algorithm which was invented in 1976 has also been used in the past.
The first one million digits of π and 1/π are available from Project Gutenberg (see external links below). The current record (December 2002) by Yasumasa Kanada of Tokyo University stands at 1,241,100,000,000 digits, which were computed in September 2002 on a 64-node Hitachi supercomputer with 1 terabyte of main memory, which carries out 2 trillion operations per second, nearly twice as many as the computer used for the previous record (206 billion digits). The following Machin-like formulæ were used for this:

- K. Takano (1982).

- F. C. W. Störmer (1896).
These approximations have so many digits that they are no longer of any practical use, except for testing new supercomputers. (Normality of π will always depend on the infinite string of digits on the end, not on any finite computation.)
In 1997, David H. Bailey, Peter Borwein and Simon Plouffe published a paper (Bailey, 1997) on a new formula for π as an infinite series:

This formula permits one to fairly readily compute the kth binary or hexadecimal digit of π, without having to compute the preceding k − 1 digits. Bailey's website contains the derivation as well as implementations in various programming languages. The PiHex project computed 64-bits around the quadrillionth bit of π (which turns out to be 0).
Other formulæ that have been used to compute estimates of π include:

- Newton.

- Ramanujan.
This converges extraordinarily rapidly. Ramanujan's work is the basis for the fastest algorithms used, as of the turn of the millennium, to calculate π.

- David Chudnovsky and Gregory Chudnovsky.

- Euler.
Miscellaneous formulæ
Using base 60, π can be approximated to eight significant figures as

In addition, the following expressions can be used to estimate π



- The continued fraction representation of π can be used to generate successively better rational approximations, which start off: 22/7, 333/106, 355/113…. These approximations are the best possible rational approximations of π relative to the size of their denominators.
Less accurate approximations
In 1897, a physician and amateur mathematician from Indiana named Edward J. Goodwin believed that the transcendental value of π was wrong. He proposed a bill to Indiana Representative T. I. Record which expressed the "new mathematical truth" in several ways:
- The ratio of the diameter of a circle to its circumference is 5/4 to 4. (π = 3.2)
- The ratio of the length of a 90 degree arc to the length of a segment connecting the arc's two endpoints is 8 to 7. (π ≈ 3.23…)
- The area of a circle equals the area of a square whose side is 1/4 the circumference of the circle. (π = 4)
- It has been found that a circular area is to the square on a line equal to the quadrant of the circumference, as the area of an equilateral rectangle is to the square on one side. (π ≈ 9.24 if rectangle is emended to triangle; if not, as above.)
The bill also recites Goodwin's previous accomplishments: "his solutions of the trisection of the angle, doubling the cube [and the value of π] having been already accepted as contributions to science by the American Mathematical Monthly....And be it remembered that these noted problems had been long since given up by scientific bodies as unsolvable mysteries and above man's ability to comprehend." These false claims are typical of a mathematical crank. Claims of the trisection of an angle and the doubling of the cube are particularly widespread in crank literature.
The Indiana Assembly referred the bill to the Committee on Swamp Lands, which Petr Beckmann has seen as symbolic. It was transferred to the Committee on Education, which reported favorably, and the bill passed unanimously. One argument used was that Goodwin had copyrighted his discovery, and proposed to let the State use it in the public schools for free. As this debate concluded, Professor C. A. Waldo arrived in Indianapolis to secure the annual appropriation for the Indiana Academy of Sciences. An assemblyman handed him the bill, offering to introduce him to the genius who wrote it. He declined, saying that he already knew as many crazy people as he cared to.
The Indiana Senate had not yet finally passed the bill (which they had referred to the Committee on Temperance), and Professor Waldo coached enough Senators overnight that they postponed the bill indefinitely. source
Memorizing digits
- Main article: Piphilology
Ever since computers have calculated π to billions of decimal places, memorizing π has become a hobby for some people. The current world record is 83,431 decimal places, and was set by a Japanese mental health counsellor named Akira Haraguchi, who is currently 59 years of age.[2] Before Haraguchi accomplished this on July 2, 2005, the world record was 42,195, which was set by Hiroyuki Goto. See here, a website listing many people who have memorized impressive amounts of π.
There are many ways to memorize π, including the use of piems, which are poems that represent π in a way such that the length of each word (in letters) represents a digit. Here is an example of a piem: How I need a drink, alcoholic in nature (or: of course), after the heavy lectures involving quantum mechanics. Notice how the first word has 3 letters, the second word has 1, the third has 4, the fourth has 1, the fifth has 5, and so on. The Cadaeic Cadenza contains the first 3834 digits of π in this matter. Piems are related to the entire field of humorous yet serious study that involves the use of mnemonic techniques to remember the digits of π, known as piphilology. See Pi mnemonics for examples.
More digits of pi can be found on the OEIS' page for the decimal expansion of pi.
Open questions
The most pressing open question about π is whether it is a normal number -- whether any digit block occurs in the expansion of π just as often as one would statistically expect if the digits had been produced completely "randomly", and that this is true in every base, not just base 10. Current knowledge on this point is very weak; e.g., it is not even known which of the digits 0,…,9 occur infinitely often in the decimal expansion of π.
Bailey and Crandall showed in 2000 that the existence of the above mentioned Bailey-Borwein-Plouffe formula and similar formulæ imply that the normality in base 2 of π and various other constants can be reduced to a plausible conjecture of chaos theory. See Bailey's above mentioned web site for details.
It is also unknown whether π and e are algebraically independent. However it is known that at least one of πe and π + e is transcendental (q.v.).
Naturality
In non-Euclidean geometry the sum of the angles of a triangle may be more or less than π radians, and the ratio of a circle's circumference to its diameter may also differ from π. This does not change the definition of π, but it does affect many formulæ in which π appears. So, in particular, π is not affected by the shape of the universe; it is not a physical constant but a mathematical constant defined independently of any physical measurements. Nonetheless, it occurs often in physics.
For example, consider Coulomb's law (SI units)
.
Here, 4πr2 is just the surface area of sphere of radius r. In this form, it is a convenient way of describing the inverse square relationship of the force at a distance r from a point source. It would of course be possible to describe this law in other, but less convenient ways, or in some cases more convenient. If Planck charge is used, it can be written as

and thus eliminate the need for π.
Fictional references
- Contact -- Carl Sagan's science fiction work. Sagan contemplates the possibility of finding a signature embedded in the base-11 expansion of π by the creators of the universe.
- Eon -- science fiction novel by Greg Bear. The protagonists measure the amount of space curvature using a device that computes π. Only in completely flat space/time will a circle have a circumference, diameter ratio of 3.14159….
- Going Postal -- fantasy novel by Terry Pratchett. Famous inventor Bloody Stupid Johnson invents an organ/mail sorter that contains a wheel for which π is exactly 3. This "New π" starts a chain of events that leads to the failure of the Ankh-Morpork Post Office (and possibly the destruction of the Universe all in one go.)
- π (film) -- On the relationship between numbers and nature: finding one without being a numerologist.
- The Simpsons -- "π is exactly 3!" was an announcement used by Professor Frink to gain the full attention of a hall full of scientists.
- Star Trek -- "Wolf in the Fold" -- When the computer of the Enterprise is taken over by an evil alien, Spock tells the computer to figure π to the last digit, which forces the alien to leave.
- Time's Eye -- science fiction by Arthur C. Clarke and Stephen Baxter. In a world restructured by alien forces, a spherical device is observed whose circumference to diameter ratio appears to be an exact integer 3 across all planes. It is the first book in The Time Odyssey series.
- "Childhood's End" -- science-fiction novel by Arthur C. Clarke (1953). In the novel, a race of aliens that visits Earth mentions discovering a pattern within the digits of π. They indicate that they do not know the meaning of the pattern, but have devoted much effort to uncovering it. They speculate that the pattern could only have been placed there by the creator of the universe.
- Jimmy Neutron -- Similar to the reaction of the scientists in the scene from The Simpsons, in "Revenge of the Nanobots," Jimmy destroys the nanobots (which were designed to fix all errors, and were destroying mankind due to an excessively high standard of "error-free") by making them correct a test paper which states that π equals 3.
- "The Ragged Astronauts" -- science-fiction novel by Bob Shaw about 2 planets, Land & Overland, which share atmospheres. π is discovered by the most eminent philosopher of Land to be exactly 3. Subsequent books in the trilogy involve another planet (Farland), and the discovery of changes to the value of π.
Trivia
March 14 (3/14 in U.S. date format) marks Pi Day which is celebrated by many lovers of π.
On July 22, Pi Approximation Day is celebrated (22/7 - in European date format - is a popular approximation of π).
355/113 (~3.1415929) is sometimes jokingly referred to as "not π, but an incredible simulation!"
Singer Kate Bush's 2005 album "Aerial" contains a song titled "π," in which she sings π to its 137th decimal place; however, for an unknown reason, she omits the 79th to 100th decimal places.[3]
The band Hard 'n Phirm perform a song named π on their album Horses and Grasses. The song is 3 minutes, 14 seconds long. Parts of the song were used as the sound for a π YTMND fad.
John Harrison (1693–1776) (of Longitude fame), devised a meantone temperament musical tuning system derived from π, now called Lucy Tuning.
Users of the A9.com search engine are eligible for an amazon.com program offering discounts of (π/2)% on purchases.
The symbol for π was proposed by William Jones in 1706.
See also
References
External links
- Digits