Pi

Author: www.NiNa.Az
Mar 12, 2025 / 05:35

The number π p aɪ spelled out as pi is a mathematical constant approximately equal to 3 14159 that is the ratio of a cir

Pi
Pi
Pi

The number π (/p/ ; spelled out as "pi") is a mathematical constant, approximately equal to 3.14159, that is the ratio of a circle's circumference to its diameter. It appears in many formulae across mathematics and physics, and some of these formulae are commonly used for defining π, to avoid relying on the definition of the length of a curve.

The number π is an irrational number, meaning that it cannot be expressed exactly as a ratio of two integers, although fractions such as are commonly used to approximate it. Consequently, its decimal representation never ends, nor enters a permanently repeating pattern. It is a transcendental number, meaning that it cannot be a solution of an algebraic equation involving only finite sums, products, powers, and integers. The transcendence of π implies that it is impossible to solve the ancient challenge of squaring the circle with a compass and straightedge. The decimal digits of π appear to be randomly distributed, but no proof of this conjecture has been found.

For thousands of years, mathematicians have attempted to extend their understanding of π, sometimes by computing its value to a high degree of accuracy. Ancient civilizations, including the Egyptians and Babylonians, required fairly accurate approximations of π for practical computations. Around 250 BC, the Greek mathematician Archimedes created an algorithm to approximate π with arbitrary accuracy. In the 5th century AD, Chinese mathematicians approximated π to seven digits, while Indian mathematicians made a five-digit approximation, both using geometrical techniques. The first computational formula for π, based on infinite series, was discovered a millennium later. The earliest known use of the Greek letter π to represent the ratio of a circle's circumference to its diameter was by the Welsh mathematician William Jones in 1706. The invention of calculus soon led to the calculation of hundreds of digits of π, enough for all practical scientific computations. Nevertheless, in the 20th and 21st centuries, mathematicians and computer scientists have pursued new approaches that, when combined with increasing computational power, extended the decimal representation of π to many trillions of digits. These computations are motivated by the development of efficient algorithms to calculate numeric series, as well as the human quest to break records. The extensive computations involved have also been used to test supercomputers as well as stress testing consumer computer hardware.

Because it relates to a circle, π is found in many formulae in trigonometry and geometry, especially those concerning circles, ellipses and spheres. It is also found in formulae from other topics in science, such as cosmology, fractals, thermodynamics, mechanics, and electromagnetism. It also appears in areas having little to do with geometry, such as number theory and statistics, and in modern mathematical analysis can be defined without any reference to geometry. The ubiquity of π makes it one of the most widely known mathematical constants inside and outside of science. Several books devoted to π have been published, and record-setting calculations of the digits of π often result in news headlines.

Fundamentals

Name

The symbol used by mathematicians to represent the ratio of a circle's circumference to its diameter is the lowercase Greek letter π, sometimes spelled out as pi. In English, π is pronounced as "pie" (/p/ PY). In mathematical use, the lowercase letter π is distinguished from its capitalized and enlarged counterpart Π, which denotes a product of a sequence, analogous to how Σ denotes summation.

The choice of the symbol π is discussed in the section Adoption of the symbol π.

Definition

image
The circumference of a circle is slightly more than three times as long as its diameter. The exact ratio is called π.

π is commonly defined as the ratio of a circle's circumference C to its diameter d:image

The ratio image is constant, regardless of the circle's size. For example, if a circle has twice the diameter of another circle, it will also have twice the circumference, preserving the ratio image. This definition of π implicitly makes use of flat (Euclidean) geometry; although the notion of a circle can be extended to any curve (non-Euclidean) geometry, these new circles will no longer satisfy the formula image.

Here, the circumference of a circle is the arc length around the perimeter of the circle, a quantity which can be formally defined independently of geometry using limits—a concept in calculus. For example, one may directly compute the arc length of the top half of the unit circle, given in Cartesian coordinates by the equation image, as the integral:image

An integral such as this was proposed as a definition of π by Karl Weierstrass, who defined it directly as an integral in 1841.

Integration is no longer commonly used in a first analytical definition because, as Remmert 2012 explains, differential calculus typically precedes integral calculus in the university curriculum, so it is desirable to have a definition of π that does not rely on the latter. One such definition, due to Richard Baltzer and popularized by Edmund Landau, is the following: π is twice the smallest positive number at which the cosine function equals 0.π is also the smallest positive number at which the sine function equals zero, and the difference between consecutive zeroes of the sine function. The cosine and sine can be defined independently of geometry as a power series, or as the solution of a differential equation.

In a similar spirit, π can be defined using properties of the complex exponential, exp z, of a complex variable z. Like the cosine, the complex exponential can be defined in one of several ways. The set of complex numbers at which exp z is equal to one is then an (imaginary) arithmetic progression of the form: image and there is a unique positive real number π with this property.

A variation on the same idea, making use of sophisticated mathematical concepts of topology and algebra, is the following theorem: there is a unique (up to automorphism) continuous isomorphism from the group R/Z of real numbers under addition modulo integers (the circle group), onto the multiplicative group of complex numbers of absolute value one. The number π is then defined as half the magnitude of the derivative of this homomorphism.

Irrationality and normality

π is an irrational number, meaning that it cannot be written as the ratio of two integers. Fractions such as 22/7 and 355/113 are commonly used to approximate π, but no common fraction (ratio of whole numbers) can be its exact value. Because π is irrational, it has an infinite number of digits in its decimal representation, and does not settle into an infinitely repeating pattern of digits. There are several proofs that π is irrational; they generally require calculus and rely on the reductio ad absurdum technique. The degree to which π can be approximated by rational numbers (called the irrationality measure) is not precisely known; estimates have established that the irrationality measure is larger or at least equal to the measure of e but smaller than the measure of Liouville numbers.

The digits of π have no apparent pattern and have passed tests for statistical randomness, including tests for normality; a number of infinite length is called normal when all possible sequences of digits (of any given length) appear equally often. The conjecture that π is normal has not been proven or disproven.

Since the advent of computers, a large number of digits of π have been available on which to perform statistical analysis. Yasumasa Kanada has performed detailed statistical analyses on the decimal digits of π, and found them consistent with normality; for example, the frequencies of the ten digits 0 to 9 were subjected to statistical significance tests, and no evidence of a pattern was found. Any random sequence of digits contains arbitrarily long subsequences that appear non-random, by the infinite monkey theorem. Thus, because the sequence of π's digits passes statistical tests for randomness, it contains some sequences of digits that may appear non-random, such as a sequence of six consecutive 9s that begins at the 762nd decimal place of the decimal representation of π. This is also called the "Feynman point" in mathematical folklore, after Richard Feynman, although no connection to Feynman is known.

Transcendence

image
Because π is a transcendental number, squaring the circle is not possible in a finite number of steps using the classical tools of compass and straightedge.

In addition to being irrational, π is also a transcendental number, which means that it is not the solution of any non-constant polynomial equation with rational coefficients, such as image. This follows from the so-called Lindemann–Weierstrass theorem, which also establishes the transcendence of the constant e.

The transcendence of π has two important consequences: First, π cannot be expressed using any finite combination of rational numbers and square roots or n-th roots (such as image or image). Second, since no transcendental number can be constructed with compass and straightedge, it is not possible to "square the circle". In other words, it is impossible to construct, using compass and straightedge alone, a square whose area is exactly equal to the area of a given circle. Squaring a circle was one of the important geometry problems of the classical antiquity. Amateur mathematicians in modern times have sometimes attempted to square the circle and claim success—despite the fact that it is mathematically impossible.

An unsolved problem thus far is the question of whether or not the numbers π and e are algebraically independent ("relatively transcendental"). This would be resolved by Schanuel's conjecture – a currently unproven generalization of the Lindemann–Weierstrass theorem.

Continued fractions

As an irrational number, π cannot be represented as a common fraction. But every number, including π, can be represented by an infinite series of nested fractions, called a simple continued fraction: image

Truncating the continued fraction at any point yields a rational approximation for π; the first four of these are 3, 22/7, 333/106, and 355/113. These numbers are among the best-known and most widely used historical approximations of the constant. Each approximation generated in this way is a best rational approximation; that is, each is closer to π than any other fraction with the same or a smaller denominator. Because π is transcendental, it is by definition not algebraic and so cannot be a quadratic irrational. Therefore, π cannot have a periodic continued fraction. Although the simple continued fraction for π (with numerators all 1, shown above) also does not exhibit any other obvious pattern, several non-simple continued fractions do, such as:image

The middle of these is due to the mid-17th century mathematician William Brouncker, see § Brouncker's formula.

Approximate value and digits

Some approximations of pi include:

  • Integers: 3
  • Fractions: Approximate fractions include (in order of increasing accuracy) 22/7, 333/106, 355/113, 52163/16604, 103993/33102, 104348/33215, and 245850922/78256779. (List is selected terms from OEISA063674 and OEISA063673.)
  • Digits: The first 50 decimal digits are 3.14159265358979323846264338327950288419716939937510... (see OEISA000796)

Digits in other number systems

  • The first 48 binary (base 2) digits (called bits) are 11.001001000011111101101010100010001000010110100011... (see OEISA004601)
  • The first 36 digits in ternary (base 3) are 10.010211012222010211002111110221222220... (see OEISA004602)
  • The first 20 digits in hexadecimal (base 16) are 3.243F6A8885A308D31319... (see OEISA062964)
  • The first five sexagesimal (base 60) digits are 3;8,29,44,0,47 (see OEISA060707)

Complex numbers and Euler's identity

image
The association between imaginary powers of the number e and points on the unit circle centred at the origin in the complex plane given by Euler's formula

Any complex number, say z, can be expressed using a pair of real numbers. In the polar coordinate system, one number (radius or r) is used to represent z's distance from the origin of the complex plane, and the other (angle or φ) the counter-clockwise rotation from the positive real line:image where i is the imaginary unit satisfying image. The frequent appearance of π in complex analysis can be related to the behaviour of the exponential function of a complex variable, described by Euler's formula:image where the constant e is the base of the natural logarithm. This formula establishes a correspondence between imaginary powers of e and points on the unit circle centred at the origin of the complex plane. Setting image in Euler's formula results in Euler's identity, celebrated in mathematics due to it containing five important mathematical constants:image

There are n different complex numbers z satisfying image, and these are called the "n-th roots of unity" and are given by the formula: image

History

Antiquity

The best-known approximations to π dating before the Common Era were accurate to two decimal places; this was improved upon in Chinese mathematics in particular by the mid-first millennium, to an accuracy of seven decimal places. After this, no further progress was made until the late medieval period.

The earliest written approximations of π are found in Babylon and Egypt, both within one percent of the true value. In Babylon, a clay tablet dated 1900–1600 BC has a geometrical statement that, by implication, treats π as 25/8 = 3.125. In Egypt, the Rhind Papyrus, dated around 1650 BC but copied from a document dated to 1850 BC, has a formula for the area of a circle that treats π as image. Although some pyramidologists have theorized that the Great Pyramid of Giza was built with proportions related to π, this theory is not widely accepted by scholars. In the Shulba Sutras of Indian mathematics, dating to an oral tradition from the first or second millennium BC, approximations are given which have been variously interpreted as approximately 3.08831, 3.08833, 3.004, 3, or 3.125.

Polygon approximation era

image
Archimedes developed the polygonal approach to approximating π.
image
π can be estimated by computing the perimeters of circumscribed and inscribed polygons.

The first recorded algorithm for rigorously calculating the value of π was a geometrical approach using polygons, devised around 250 BC by the Greek mathematician Archimedes, implementing the method of exhaustion. This polygonal algorithm dominated for over 1,000 years, and as a result π is sometimes referred to as Archimedes's constant. Archimedes computed upper and lower bounds of π by drawing a regular hexagon inside and outside a circle, and successively doubling the number of sides until he reached a 96-sided regular polygon. By calculating the perimeters of these polygons, he proved that 223/71 < π < 22/7 (that is, 3.1408 < π < 3.1429). Archimedes' upper bound of 22/7 may have led to a widespread popular belief that π is equal to 22/7. Around 150 AD, Greek-Roman scientist Ptolemy, in his Almagest, gave a value for π of 3.1416, which he may have obtained from Archimedes or from Apollonius of Perga. Mathematicians using polygonal algorithms reached 39 digits of π in 1630, a record only broken in 1699 when infinite series were used to reach 71 digits.

In ancient China, values for π included 3.1547 (around 1 AD), image (100 AD, approximately 3.1623), and 142/45 (3rd century, approximately 3.1556). Around 265 AD, the Wei Kingdom mathematician Liu Hui created a polygon-based iterative algorithm and used it with a 3,072-sided polygon to obtain a value of π of 3.1416. Liu later invented a faster method of calculating π and obtained a value of 3.14 with a 96-sided polygon, by taking advantage of the fact that the differences in area of successive polygons form a geometric series with a factor of 4. The Chinese mathematician Zu Chongzhi, around 480 AD, calculated that image and suggested the approximations image and image, which he termed the Milü (''close ratio") and Yuelü ("approximate ratio"), respectively, using Liu Hui's algorithm applied to a 12,288-sided polygon. With a correct value for its seven first decimal digits, this value remained the most accurate approximation of π available for the next 800 years.

The Indian astronomer Aryabhata used a value of 3.1416 in his Āryabhaṭīya (499 AD).Fibonacci in c. 1220 computed 3.1418 using a polygonal method, independent of Archimedes. Italian author Dante apparently employed the value image.

The Persian astronomer Jamshīd al-Kāshī produced nine sexagesimal digits, roughly the equivalent of 16 decimal digits, in 1424, using a polygon with image sides, which stood as the world record for about 180 years. French mathematician François Viète in 1579 achieved nine digits with a polygon of image sides. Flemish mathematician Adriaan van Roomen arrived at 15 decimal places in 1593. In 1596, Dutch mathematician Ludolph van Ceulen reached 20 digits, a record he later increased to 35 digits (as a result, π was called the "Ludolphian number" in Germany until the early 20th century). Dutch scientist Willebrord Snellius reached 34 digits in 1621, and Austrian astronomer Christoph Grienberger arrived at 38 digits in 1630 using 1040 sides.Christiaan Huygens was able to arrive at 10 decimal places in 1654 using a slightly different method equivalent to Richardson extrapolation.

Infinite series

image
Comparison of the convergence of several historical infinite series for π. Sn is the approximation after taking n terms. Each subsequent subplot magnifies the shaded area horizontally by 10 times. (click for detail)

The calculation of π was revolutionized by the development of infinite series techniques in the 16th and 17th centuries. An infinite series is the sum of the terms of an infinite sequence. Infinite series allowed mathematicians to compute π with much greater precision than Archimedes and others who used geometrical techniques. Although infinite series were exploited for π most notably by European mathematicians such as James Gregory and Gottfried Wilhelm Leibniz, the approach also appeared in the Kerala school sometime in the 14th or 15th century. Around 1500 AD, a written description of an infinite series that could be used to compute π was laid out in Sanskrit verse in Tantrasamgraha by Nilakantha Somayaji. The series are presented without proof, but proofs are presented in a later work, Yuktibhāṣā, from around 1530 AD. Several infinite series are described, including series for sine (which Nilakantha attributes to Madhava of Sangamagrama), cosine, and arctangent which are now sometimes referred to as Madhava series. The series for arctangent is sometimes called Gregory's series or the Gregory–Leibniz series. Madhava used infinite series to estimate π to 11 digits around 1400.

In 1593, François Viète published what is now known as Viète's formula, an infinite product (rather than an infinite sum, which is more typically used in π calculations):image

In 1655, John Wallis published what is now known as Wallis product, also an infinite product:image

image
Isaac Newton used infinite series to compute π to 15 digits, later writing "I am ashamed to tell you to how many figures I carried these computations".

In the 1660s, the English scientist Isaac Newton and German mathematician Gottfried Wilhelm Leibniz discovered calculus, which led to the development of many infinite series for approximating π. Newton himself used an arcsine series to compute a 15-digit approximation of π in 1665 or 1666, writing, "I am ashamed to tell you to how many figures I carried these computations, having no other business at the time."

In 1671, James Gregory, and independently, Leibniz in 1673, discovered the Taylor series expansion for arctangent:image

This series, sometimes called the Gregory–Leibniz series, equals image when evaluated with image. But for image, it converges impractically slowly (that is, approaches the answer very gradually), taking about ten times as many terms to calculate each additional digit.

In 1699, English mathematician Abraham Sharp used the Gregory–Leibniz series for image to compute π to 71 digits, breaking the previous record of 39 digits, which was set with a polygonal algorithm.

In 1706, John Machin used the Gregory–Leibniz series to produce an algorithm that converged much faster:image

Machin reached 100 digits of π with this formula. Other mathematicians created variants, now known as Machin-like formulae, that were used to set several successive records for calculating digits of π.

Isaac Newton accelerated the convergence of the Gregory–Leibniz series in 1684 (in an unpublished work; others independently discovered the result):

image

Leonhard Euler popularized this series in his 1755 differential calculus textbook, and later used it with Machin-like formulae, including image with which he computed 20 digits of π in one hour.

Machin-like formulae remained the best-known method for calculating π well into the age of computers, and were used to set records for 250 years, culminating in a 620-digit approximation in 1946 by Daniel Ferguson – the best approximation achieved without the aid of a calculating device.

In 1844, a record was set by Zacharias Dase, who employed a Machin-like formula to calculate 200 decimals of π in his head at the behest of German mathematician Carl Friedrich Gauss.

In 1853, British mathematician William Shanks calculated π to 607 digits, but made a mistake in the 528th digit, rendering all subsequent digits incorrect. Though he calculated an additional 100 digits in 1873, bringing the total up to 707, his previous mistake rendered all the new digits incorrect as well.

Rate of convergence

Some infinite series for π converge faster than others. Given the choice of two infinite series for π, mathematicians will generally use the one that converges more rapidly because faster convergence reduces the amount of computation needed to calculate π to any given accuracy. A simple infinite series for π is the Gregory–Leibniz series:image

As individual terms of this infinite series are added to the sum, the total gradually gets closer to π, and – with a sufficient number of terms – can get as close to π as desired. It converges quite slowly, though – after 500,000 terms, it produces only five correct decimal digits of π.

An infinite series for π (published by Nilakantha in the 15th century) that converges more rapidly than the Gregory–Leibniz series is:image

The following table compares the convergence rates of these two series:

Infinite series for π After 1st term After 2nd term After 3rd term After 4th term After 5th term Converges to:
image 4.0000 2.6666 ... 3.4666 ... 2.8952 ... 3.3396 ... π = 3.1415 ...
image 3.0000 3.1666 ... 3.1333 ... 3.1452 ... 3.1396 ...

After five terms, the sum of the Gregory–Leibniz series is within 0.2 of the correct value of π, whereas the sum of Nilakantha's series is within 0.002 of the correct value. Nilakantha's series converges faster and is more useful for computing digits of π. Series that converge even faster include Machin's series and Chudnovsky's series, the latter producing 14 correct decimal digits per term.

Irrationality and transcendence

Not all mathematical advances relating to π were aimed at increasing the accuracy of approximations. When Euler solved the Basel problem in 1735, finding the exact value of the sum of the reciprocal squares, he established a connection between π and the prime numbers that later contributed to the development and study of the Riemann zeta function:

image

Swiss scientist Johann Heinrich Lambert in 1768 proved that π is irrational, meaning it is not equal to the quotient of any two integers.Lambert's proof exploited a continued-fraction representation of the tangent function. French mathematician Adrien-Marie Legendre proved in 1794 that π2 is also irrational. In 1882, German mathematician Ferdinand von Lindemann proved that π is transcendental, confirming a conjecture made by both Legendre and Euler. Hardy and Wright states that "the proofs were afterwards modified and simplified by Hilbert, Hurwitz, and other writers".

Adoption of the symbol π

image
The earliest known use of the Greek letter π to represent the ratio of a circle's circumference to its diameter was by Welsh mathematician William Jones in 1706
image
Leonhard Euler popularized the use of the Greek letter π in works he published in 1736 and 1748.

The first recorded use of the symbol π in circle geometry is in Oughtred's Clavis Mathematicae (1648), where the Greek letters π and δ were combined into the fraction image for denoting the ratios semiperimeter to semidiameter and perimeter to diameter, that is, what is presently denoted as π. (Before then, mathematicians sometimes used letters such as c or p instead.) Barrow likewise used the same notation, while Gregory instead used image to represent 6.28... .

The earliest known use of the Greek letter π alone to represent the ratio of a circle's circumference to its diameter was by Welsh mathematician William Jones in his 1706 work Synopsis Palmariorum Matheseos; or, a New Introduction to the Mathematics. The Greek letter appears on p. 243 in the phrase "image Periphery (π)", calculated for a circle with radius one. However, Jones writes that his equations for π are from the "ready pen of the truly ingenious Mr. John Machin", leading to speculation that Machin may have employed the Greek letter before Jones. Jones' notation was not immediately adopted by other mathematicians, with the fraction notation still being used as late as 1767.

Euler started using the single-letter form beginning with his 1727 Essay Explaining the Properties of Air, though he used π = 6.28..., the ratio of periphery to radius, in this and some later writing. Euler first used π = 3.14... in his 1736 work Mechanica, and continued in his widely read 1748 work Introductio in analysin infinitorum (he wrote: "for the sake of brevity we will write this number as π; thus π is equal to half the circumference of a circle of radius 1"). Because Euler corresponded heavily with other mathematicians in Europe, the use of the Greek letter spread rapidly, and the practice was universally adopted thereafter in the Western world, though the definition still varied between 3.14... and 6.28... as late as 1761.

Modern quest for more digits

Computer era and iterative algorithms

The Gauss–Legendre iterative algorithm:
Initialize image Iterate image image Then an estimate for π is given by image

The development of computers in the mid-20th century again revolutionized the hunt for digits of π. Mathematicians John Wrench and Levi Smith reached 1,120 digits in 1949 using a desk calculator. Using an inverse tangent (arctan) infinite series, a team led by George Reitwiesner and John von Neumann that same year achieved 2,037 digits with a calculation that took 70 hours of computer time on the ENIAC computer. The record, always relying on an arctan series, was broken repeatedly (3089 digits in 1955, 7,480 digits in 1957; 10,000 digits in 1958; 100,000 digits in 1961) until 1 million digits was reached in 1973.

Two additional developments around 1980 once again accelerated the ability to compute π. First, the discovery of new iterative algorithms for computing π, which were much faster than the infinite series; and second, the invention of fast multiplication algorithms that could multiply large numbers very rapidly. Such algorithms are particularly important in modern π computations because most of the computer's time is devoted to multiplication. They include the Karatsuba algorithm, Toom–Cook multiplication, and Fourier transform-based methods.

The iterative algorithms were independently published in 1975–1976 by physicist Eugene Salamin and scientist Richard Brent. These avoid reliance on infinite series. An iterative algorithm repeats a specific calculation, each iteration using the outputs from prior steps as its inputs, and produces a result in each step that converges to the desired value. The approach was actually invented over 160 years earlier by Carl Friedrich Gauss, in what is now termed the arithmetic–geometric mean method (AGM method) or Gauss–Legendre algorithm. As modified by Salamin and Brent, it is also referred to as the Brent–Salamin algorithm.

The iterative algorithms were widely used after 1980 because they are faster than infinite series algorithms: whereas infinite series typically increase the number of correct digits additively in successive terms, iterative algorithms generally multiply the number of correct digits at each step. For example, the Brent–Salamin algorithm doubles the number of digits in each iteration. In 1984, brothers John and Peter Borwein produced an iterative algorithm that quadruples the number of digits in each step; and in 1987, one that increases the number of digits five times in each step. Iterative methods were used by Japanese mathematician Yasumasa Kanada to set several records for computing π between 1995 and 2002. This rapid convergence comes at a price: the iterative algorithms require significantly more memory than infinite series.

Motives for computing π

image
As mathematicians discovered new algorithms, and computers became available, the number of known decimal digits of π increased dramatically. The vertical scale is logarithmic.

For most numerical calculations involving π, a handful of digits provide sufficient precision. According to Jörg Arndt and Christoph Haenel, thirty-nine digits are sufficient to perform most cosmological calculations, because that is the accuracy necessary to calculate the circumference of the observable universe with a precision of one atom. Accounting for additional digits needed to compensate for computational round-off errors, Arndt concludes that a few hundred digits would suffice for any scientific application. Despite this, people have worked strenuously to compute π to thousands and millions of digits. This effort may be partly ascribed to the human compulsion to break records, and such achievements with π often make headlines around the world. They also have practical benefits, such as testing supercomputers, testing numerical analysis algorithms (including high-precision multiplication algorithms); and within pure mathematics itself, providing data for evaluating the randomness of the digits of π.

Rapidly convergent series

image
Srinivasa Ramanujan, working in isolation in India, produced many innovative series for computing π.

Modern π calculators do not use iterative algorithms exclusively. New infinite series were discovered in the 1980s and 1990s that are as fast as iterative algorithms, yet are simpler and less memory intensive. The fast iterative algorithms were anticipated in 1914, when Indian mathematician Srinivasa Ramanujan published dozens of innovative new formulae for π, remarkable for their elegance, mathematical depth and rapid convergence. One of his formulae, based on modular equations, is image

This series converges much more rapidly than most arctan series, including Machin's formula.Bill Gosper was the first to use it for advances in the calculation of π, setting a record of 17 million digits in 1985. Ramanujan's formulae anticipated the modern algorithms developed by the Borwein brothers (Jonathan and Peter) and the Chudnovsky brothers. The Chudnovsky formula developed in 1987 is image

It produces about 14 digits of π per term and has been used for several record-setting π calculations, including the first to surpass 1 billion (109) digits in 1989 by the Chudnovsky brothers, 10 trillion (1013) digits in 2011 by Alexander Yee and Shigeru Kondo, and 100 trillion digits by Emma Haruka Iwao in 2022. For similar formulae, see also the Ramanujan–Sato series.

In 2006, mathematician Simon Plouffe used the PSLQ integer relation algorithm to generate several new formulae for π, conforming to the following template: image where q is eπ (Gelfond's constant), k is an odd number, and a, b, c are certain rational numbers that Plouffe computed.

Monte Carlo methods

image
Buffon's needle. Needles a and b are dropped randomly.
image
Random dots are placed on a square and a circle inscribed inside.

Monte Carlo methods, which evaluate the results of multiple random trials, can be used to create approximations of π.Buffon's needle is one such technique: If a needle of length is dropped n times on a surface on which parallel lines are drawn t units apart, and if x of those times it comes to rest crossing a line (x > 0), then one may approximate π based on the counts:image

Another Monte Carlo method for computing π is to draw a circle inscribed in a square, and randomly place dots in the square. The ratio of dots inside the circle to the total number of dots will approximately equal π/4.

image
Five random walks with 200 steps. The sample mean of |W200| is μ = 56/5, and so 2(200)μ−2 ≈ 3.19 is within 0.05 of π.

Another way to calculate π using probability is to start with a random walk, generated by a sequence of (fair) coin tosses: independent random variables Xk such that Xk ∈ {−1,1} with equal probabilities. The associated random walk is image so that, for each n, Wn is drawn from a shifted and scaled binomial distribution. As n varies, Wn defines a (discrete) stochastic process. Then π can be calculated byimage

This Monte Carlo method is independent of any relation to circles, and is a consequence of the central limit theorem, discussed below.

These Monte Carlo methods for approximating π are very slow compared to other methods, and do not provide any information on the exact number of digits that are obtained. Thus they are never used to approximate π when speed or accuracy is desired.

Spigot algorithms

Two algorithms were discovered in 1995 that opened up new avenues of research into π. They are called spigot algorithms because, like water dripping from a spigot, they produce single digits of π that are not reused after they are calculated. This is in contrast to infinite series or iterative algorithms, which retain and use all intermediate digits until the final result is produced.

Mathematicians Stan Wagon and Stanley Rabinowitz produced a simple spigot algorithm in 1995. Its speed is comparable to arctan algorithms, but not as fast as iterative algorithms.

Another spigot algorithm, the BBP digit extraction algorithm, was discovered in 1995 by Simon Plouffe:image

This formula, unlike others before it, can produce any individual hexadecimal digit of π without calculating all the preceding digits. Individual binary digits may be extracted from individual hexadecimal digits, and octal digits can be extracted from one or two hexadecimal digits. An important application of digit extraction algorithms is to validate new claims of record π computations: After a new record is claimed, the decimal result is converted to hexadecimal, and then a digit extraction algorithm is used to calculate several randomly selected hexadecimal digits near the end; if they match, this provides a measure of confidence that the entire computation is correct.

Between 1998 and 2000, the distributed computing project PiHex used Bellard's formula (a modification of the BBP algorithm) to compute the quadrillionth (1015th) bit of π, which turned out to be 0. In September 2010, a Yahoo! employee used the company's Hadoop application on one thousand computers over a 23-day period to compute 256 bits of π at the two-quadrillionth (2×1015th) bit, which also happens to be zero.

In 2022, Plouffe found a base-10 algorithm for calculating digits of π.

Role and characterizations in mathematics

Because π is closely related to the circle, it is found in many formulae from the fields of geometry and trigonometry, particularly those concerning circles, spheres, or ellipses. Other branches of science, such as statistics, physics, Fourier analysis, and number theory, also include π in some of their important formulae.

Geometry and trigonometry

image
The area of the circle equals π times the shaded area. The area of the unit circle is π.

π appears in formulae for areas and volumes of geometrical shapes based on circles, such as ellipses, spheres, cones, and tori. Below are some of the more common formulae that involve π.

  • The circumference of a circle with radius r is r.
  • The area of a circle with radius r is πr2.
  • The area of an ellipse with semi-major axis a and semi-minor axis b is πab.
  • The volume of a sphere with radius r is 4/3πr3.
  • The surface area of a sphere with radius r is r2.

Some of the formulae above are special cases of the volume of the n-dimensional ball and the surface area of its boundary, the (n−1)-dimensional sphere, given below.

Apart from circles, there are other curves of constant width. By Barbier's theorem, every curve of constant width has perimeter π times its width. The Reuleaux triangle (formed by the intersection of three circles with the sides of an equilateral triangle as their radii) has the smallest possible area for its width and the circle the largest. There also exist non-circular smooth and even algebraic curves of constant width.

Definite integrals that describe circumference, area, or volume of shapes generated by circles typically have values that involve π. For example, an integral that specifies half the area of a circle of radius one is given by:image

In that integral, the function image represents the height over the image-axis of a semicircle (the square root is a consequence of the Pythagorean theorem), and the integral computes the area below the semicircle.

The existence of such integrals makes π an algebraic period.

Units of angle

image
Sine and cosine functions repeat with period 2π.

The trigonometric functions rely on angles, and mathematicians generally use radians as units of measurement. π plays an important role in angles measured in radians, which are defined so that a complete circle spans an angle of 2π radians. The angle measure of 180° is equal to π radians, and 1° = π/180 radians.

Common trigonometric functions have periods that are multiples of π; for example, sine and cosine have period 2π, so for any angle θ and any integer k,image

Eigenvalues

image
The overtones of a vibrating string are eigenfunctions of the second derivative, and form a harmonic progression. The associated eigenvalues form the arithmetic progression of integer multiples of π.

Many of the appearances of π in the formulae of mathematics and the sciences have to do with its close relationship with geometry. However, π also appears in many natural situations having apparently nothing to do with geometry.

In many applications, it plays a distinguished role as an eigenvalue. For example, an idealized vibrating string can be modelled as the graph of a function f on the unit interval [0, 1], with fixed ends f(0) = f(1) = 0. The modes of vibration of the string are solutions of the differential equation image, or image. Thus λ is an eigenvalue of the second derivative operator image, and is constrained by Sturm–Liouville theory to take on only certain specific values. It must be positive, since the operator is negative definite, so it is convenient to write λ = ν2, where ν > 0 is called the wavenumber. Then f(x) = sin(π x) satisfies the boundary conditions and the differential equation with ν = π.

The value π is, in fact, the least such value of the wavenumber, and is associated with the fundamental mode of vibration of the string. One way to show this is by estimating the energy, which satisfies Wirtinger's inequality: for a function image with f(0) = f(1) = 0 and f, f both square integrable, we have: image with equality precisely when f is a multiple of sin(π x). Here π appears as an optimal constant in Wirtinger's inequality, and it follows that it is the smallest wavenumber, using the variational characterization of the eigenvalue. As a consequence, π is the smallest singular value of the derivative operator on the space of functions on [0, 1] vanishing at both endpoints (the Sobolev space image).

Inequalities

image
The ancient city of Carthage was the solution to an isoperimetric problem, according to a legend recounted by Lord Kelvin: those lands bordering the sea that Queen Dido could enclose on all other sides within a single given oxhide, cut into strips.

The number π serves appears in similar eigenvalue problems in higher-dimensional analysis. As mentioned above, it can be characterized via its role as the best constant in the isoperimetric inequality: the area A enclosed by a plane Jordan curve of perimeter P satisfies the inequality image and equality is clearly achieved for the circle, since in that case A = πr2 and P = 2πr.

Ultimately, as a consequence of the isoperimetric inequality, π appears in the optimal constant for the critical Sobolev inequality in n dimensions, which thus characterizes the role of π in many physical phenomena as well, for example those of classical potential theory. In two dimensions, the critical Sobolev inequality is image for f a smooth function with compact support in R2, image is the gradient of f, and image and image refer respectively to the L2 and L1-norm. The Sobolev inequality is equivalent to the isoperimetric inequality (in any dimension), with the same best constants.

Wirtinger's inequality also generalizes to higher-dimensional Poincaré inequalities that provide best constants for the Dirichlet energy of an n-dimensional membrane. Specifically, π is the greatest constant such that image for all convex subsets G of Rn of diameter 1, and square-integrable functions u on G of mean zero. Just as Wirtinger's inequality is the variational form of the Dirichlet eigenvalue problem in one dimension, the Poincaré inequality is the variational form of the Neumann eigenvalue problem, in any dimension.

Fourier transform and Heisenberg uncertainty principle

image
An animation of a geodesic in the Heisenberg group

The constant π also appears as a critical spectral parameter in the Fourier transform. This is the integral transform, that takes a complex-valued integrable function f on the real line to the function defined as: image

Although there are several different conventions for the Fourier transform and its inverse, any such convention must involve π somewhere. The above is the most canonical definition, however, giving the unique unitary operator on L2 that is also an algebra homomorphism of L1 to L.

The Heisenberg uncertainty principle also contains the number π. The uncertainty principle gives a sharp lower bound on the extent to which it is possible to localize a function both in space and in frequency: with our conventions for the Fourier transform, image

The physical consequence, about the uncertainty in simultaneous position and momentum observations of a quantum mechanical system, is discussed below. The appearance of π in the formulae of Fourier analysis is ultimately a consequence of the Stone–von Neumann theorem, asserting the uniqueness of the Schrödinger representation of the Heisenberg group.

Gaussian integrals

image
A graph of the Gaussian function ƒ(x) = ex2. The coloured region between the function and the x-axis has area π.

The fields of probability and statistics frequently use the normal distribution as a simple model for complex phenomena; for example, scientists generally assume that the observational error in most experiments follows a normal distribution. The Gaussian function, which is the probability density function of the normal distribution with mean μ and standard deviation σ, naturally contains π:image

The factor of image makes the area under the graph of f equal to one, as is required for a probability distribution. This follows from a change of variables in the Gaussian integral:image which says that the area under the basic bell curve in the figure is equal to the square root of π.

The central limit theorem explains the central role of normal distributions, and thus of π, in probability and statistics. This theorem is ultimately connected with the spectral characterization of π as the eigenvalue associated with the Heisenberg uncertainty principle, and the fact that equality holds in the uncertainty principle only for the Gaussian function. Equivalently, π is the unique constant making the Gaussian normal distribution e−πx2 equal to its own Fourier transform. Indeed, according to Howe (1980), the "whole business" of establishing the fundamental theorems of Fourier analysis reduces to the Gaussian integral.

Topology

image
Uniformization of the Klein quartic, a surface of genus three and Euler characteristic −4, as a quotient of the hyperbolic plane by the symmetry group PSL(2,7) of the Fano plane. The hyperbolic area of a fundamental domain is , by Gauss–Bonnet.

The constant π appears in the Gauss–Bonnet formula which relates the differential geometry of surfaces to their topology. Specifically, if a compact surface Σ has Gauss curvature K, then image where χ(Σ) is the Euler characteristic, which is an integer. An example is the surface area of a sphere S of curvature 1 (so that its radius of curvature, which coincides with its radius, is also 1.) The Euler characteristic of a sphere can be computed from its homology groups and is found to be equal to two. Thus we have image reproducing the formula for the surface area of a sphere of radius 1.

The constant appears in many other integral formulae in topology, in particular, those involving characteristic classes via the Chern–Weil homomorphism.

Cauchy's integral formula

image
Complex analytic functions can be visualized as a collection of streamlines and equipotentials, systems of curves intersecting at right angles. Here illustrated is the complex logarithm of the Gamma function.

One of the key tools in complex analysis is contour integration of a function over a positively oriented (rectifiable) Jordan curve γ. A form of Cauchy's integral formula states that if a point z0 is interior to γ, thenimage

Although the curve γ is not a circle, and hence does not have any obvious connection to the constant π, a standard proof of this result uses Morera's theorem, which implies that the integral is invariant under homotopy of the curve, so that it can be deformed to a circle and then integrated explicitly in polar coordinates. More generally, it is true that if a rectifiable closed curve γ does not contain z0, then the above integral is i times the winding number of the curve.

The general form of Cauchy's integral formula establishes the relationship between the values of a complex analytic function f(z) on the Jordan curve γ and the value of f(z) at any interior point z0 of γ:image provided f(z) is analytic in the region enclosed by γ and extends continuously to γ. Cauchy's integral formula is a special case of the residue theorem, that if g(z) is a meromorphic function the region enclosed by γ and is continuous in a neighbourhood of γ, then image where the sum is of the residues at the poles of g(z).

Vector calculus and physics

The constant π is ubiquitous in vector calculus and potential theory, for example in Coulomb's law,Gauss's law, Maxwell's equations, and even the Einstein field equations. Perhaps the simplest example of this is the two-dimensional Newtonian potential, representing the potential of a point source at the origin, whose associated field has unit outward flux through any smooth and oriented closed surface enclosing the source: image The factor of image is necessary to ensure that image is the fundamental solution of the Poisson equation in image:image where image is the Dirac delta function.

In higher dimensions, factors of π are present because of a normalization by the n-dimensional volume of the unit n sphere. For example, in three dimensions, the Newtonian potential is:image which has the 2-dimensional volume (i.e., the area) of the unit 2-sphere in the denominator.

Total curvature

image
This curve has total curvature 6π, and index/turning number 3, though it only has winding number 2 about p.

In mathematical study of the differential geometry of curves, the total curvature of an immersed plane curve is the integral of curvature along a curve taken with respect to arc length:

image
The total curvature of a closed curve is always an integer multiple of 2π, where N is called the index of the curve or turning number – it is the winding number of the unit tangent vector about the origin, or equivalently the degree of the map to the unit circle assigning to each point of the curve, the unit velocity vector at that point. This map is similar to the Gauss map for surfaces.

The gamma function and Stirling's approximation

image
Plot of the gamma function on the real axis

The factorial function image is the product of all of the positive integers through n. The gamma function extends the concept of factorial (normally defined only for non-negative integers) to all complex numbers, except the negative real integers, with the identity image. When the gamma function is evaluated at half-integers, the result contains π. For example, image and image.

The gamma function is defined by its Weierstrass product development:image where γ is the Euler–Mascheroni constant. Evaluated at z = 1/2 and squared, the equation Γ(1/2)2 = π reduces to the Wallis product formula. The gamma function is also connected to the Riemann zeta function and identities for the functional determinant, in which the constant π plays an important role.

The gamma function is used to calculate the volume Vn(r) of the n-dimensional ball of radius r in Euclidean n-dimensional space, and the surface area Sn−1(r) of its boundary, the (n−1)-dimensional sphere:image image

Further, it follows from the functional equation that image

The gamma function can be used to create a simple approximation to the factorial function n! for large n: image which is known as Stirling's approximation. Equivalently, image

As a geometrical application of Stirling's approximation, let Δn denote the standard simplex in n-dimensional Euclidean space, and (n + 1)Δn denote the simplex having all of its sides scaled up by a factor of n + 1. Then image

Ehrhart's volume conjecture is that this is the (optimal) upper bound on the volume of a convex body containing only one lattice point.

Number theory and Riemann zeta function

image
Each prime has an associated Prüfer group, which are arithmetic localizations of the circle. The L-functions of analytic number theory are also localized in each prime p.
image
Solution of the Basel problem using the Weil conjecture: the value of ζ(2) is the hyperbolic area of a fundamental domain of the modular group, times π/2.

The Riemann zeta function ζ(s) is used in many areas of mathematics. When evaluated at s = 2 it can be written as image

Finding a simple solution for this infinite series was a famous problem in mathematics called the Basel problem. Leonhard Euler solved it in 1735 when he showed it was equal to π2/6. Euler's result leads to the number theory result that the probability of two random numbers being relatively prime (that is, having no shared factors) is equal to 6/π2. This probability is based on the observation that the probability that any number is divisible by a prime p is 1/p (for example, every 7th integer is divisible by 7.) Hence the probability that two numbers are both divisible by this prime is 1/p2, and the probability that at least one of them is not is 1 − 1/p2. For distinct primes, these divisibility events are mutually independent; so the probability that two numbers are relatively prime is given by a product over all primes:image

This probability can be used in conjunction with a random number generator to approximate π using a Monte Carlo approach.

The solution to the Basel problem implies that the geometrically derived quantity π is connected in a deep way to the distribution of prime numbers. This is a special case of Weil's conjecture on Tamagawa numbers, which asserts the equality of similar such infinite products of arithmetic quantities, localized at each prime p, and a geometrical quantity: the reciprocal of the volume of a certain locally symmetric space. In the case of the Basel problem, it is the hyperbolic 3-manifold SL2(R)/SL2(Z).

The zeta function also satisfies Riemann's functional equation, which involves π as well as the gamma function: image

Furthermore, the derivative of the zeta function satisfies image

A consequence is that π can be obtained from the functional determinant of the harmonic oscillator. This functional determinant can be computed via a product expansion, and is equivalent to the Wallis product formula. The calculation can be recast in quantum mechanics, specifically the variational approach to the spectrum of the hydrogen atom.

Fourier series

image
π appears in characters of p-adic numbers (shown), which are elements of a Prüfer group. Tate's thesis makes heavy use of this machinery.

The constant π also appears naturally in Fourier series of periodic functions. Periodic functions are functions on the group T =R/Z of fractional parts of real numbers. The Fourier decomposition shows that a complex-valued function f on T can be written as an infinite linear superposition of unitary characters of T. That is, continuous group homomorphisms from T to the circle group U(1) of unit modulus complex numbers. It is a theorem that every character of T is one of the complex exponentials image.

There is a unique character on T, up to complex conjugation, that is a group isomorphism. Using the Haar measure on the circle group, the constant π is half the magnitude of the Radon–Nikodym derivative of this character. The other characters have derivatives whose magnitudes are positive integral multiples of 2π. As a result, the constant π is the unique number such that the group T, equipped with its Haar measure, is Pontrjagin dual to the lattice of integral multiples of 2π. This is a version of the one-dimensional Poisson summation formula.

Modular forms and theta functions

image
Theta functions transform under the lattice of periods of an elliptic curve.

The constant π is connected in a deep way with the theory of modular forms and theta functions. For example, the Chudnovsky algorithm involves in an essential way the j-invariant of an elliptic curve.

Modular forms are holomorphic functions in the upper half plane characterized by their transformation properties under the modular group image (or its various subgroups), a lattice in the group image. An example is the Jacobi theta function image which is a kind of modular form called a Jacobi form. This is sometimes written in terms of the nome image.

The constant π is the unique constant making the Jacobi theta function an automorphic form, which means that it transforms in a specific way. Certain identities hold for all automorphic forms. An example is image which implies that θ transforms as a representation under the discrete Heisenberg group. General modular forms and other theta functions also involve π, once again because of the Stone–von Neumann theorem.

Cauchy distribution and potential theory

image
The Witch of Agnesi, named for Maria Agnesi (1718–1799), is a geometrical construction of the graph of the Cauchy distribution.
image
The Cauchy distribution governs the passage of Brownian particles through a membrane.

The Cauchy distribution image is a probability density function. The total probability is equal to one, owing to the integral: image

The Shannon entropy of the Cauchy distribution is equal to ln(4π), which also involves π.

The Cauchy distribution plays an important role in potential theory because it is the simplest Furstenberg measure, the classical Poisson kernel associated with a Brownian motion in a half-plane.Conjugate harmonic functions and so also the Hilbert transform are associated with the asymptotics of the Poisson kernel. The Hilbert transform H is the integral transform given by the Cauchy principal value of the singular integral image

The constant π is the unique (positive) normalizing factor such that H defines a linear complex structure on the Hilbert space of square-integrable real-valued functions on the real line. The Hilbert transform, like the Fourier transform, can be characterized purely in terms of its transformation properties on the Hilbert space L2(R): up to a normalization factor, it is the unique bounded linear operator that commutes with positive dilations and anti-commutes with all reflections of the real line. The constant π is the unique normalizing factor that makes this transformation unitary.

In the Mandelbrot set

image
The Mandelbrot set can be used to approximate π.

An occurrence of π in the fractal called the Mandelbrot set was discovered by David Boll in 1991. He examined the behaviour of the Mandelbrot set near the "neck" at (−0.75, 0). When the number of iterations until divergence for the point (−0.75, ε) is multiplied by ε, the result approaches π as ε approaches zero. The point (0.25 + ε, 0) at the cusp of the large "valley" on the right side of the Mandelbrot set behaves similarly: the number of iterations until divergence multiplied by the square root of ε tends to π.

Projective geometry

Let V be the set of all twice differentiable real functions image that satisfy the ordinary differential equation image. Then V is a two-dimensional real vector space, with two parameters corresponding to a pair of initial conditions for the differential equation. For any image, let image be the evaluation functional, which associates to each image the value image of the function f at the real point t. Then, for each t, the kernel of image is a one-dimensional linear subspace of V. Hence image defines a function from image from the real line to the real projective line. This function is periodic, and the quantity π can be characterized as the period of this map. This is notable in that the constant π, rather than 2π, appears naturally in this context.

Outside mathematics

Describing physical phenomena

Although not a physical constant, π appears routinely in equations describing fundamental principles of the universe, often because of π's relationship to the circle and to spherical coordinate systems. A simple formula from the field of classical mechanics gives the approximate period T of a simple pendulum of length L, swinging with a small amplitude (g is the earth's gravitational acceleration):image

One of the key formulae of quantum mechanics is Heisenberg's uncertainty principle, which shows that the uncertainty in the measurement of a particle's position (Δx) and momentump) cannot both be arbitrarily small at the same time (where h is the Planck constant):image

The fact that π is approximately equal to 3 plays a role in the relatively long lifetime of orthopositronium. The inverse lifetime to lowest order in the fine-structure constant α isimage where me is the mass of the electron.

π is present in some structural engineering formulae, such as the buckling formula derived by Euler, which gives the maximum axial load F that a long, slender column of length L, modulus of elasticity E, and area moment of inertia I can carry without buckling:image

The field of fluid dynamics contains π in Stokes' law, which approximates the frictional force F exerted on small, spherical objects of radius R, moving with velocity v in a fluid with dynamic viscosity η:image

In electromagnetics, the vacuum permeability constant μ0 appears in Maxwell's equations, which describe the properties of electric and magnetic fields and electromagnetic radiation. Before 20 May 2019, it was defined as exactly image

Memorizing digits

Piphilology is the practice of memorizing large numbers of digits of π, and world-records are kept by the Guinness World Records. The record for memorizing digits of π, certified by Guinness World Records, is 70,000 digits, recited in India by Rajveer Meena in 9 hours and 27 minutes on 21 March 2015. In 2006, Akira Haraguchi, a retired Japanese engineer, claimed to have recited 100,000 decimal places, but the claim was not verified by Guinness World Records.

One common technique is to memorize a story or poem in which the word lengths represent the digits of π: The first word has three letters, the second word has one, the third has four, the fourth has one, the fifth has five, and so on. Such memorization aids are called mnemonics. An early example of a mnemonic for pi, originally devised by English scientist James Jeans, is "How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics." When a poem is used, it is sometimes referred to as a piem. Poems for memorizing π have been composed in several languages in addition to English. Record-setting π memorizers typically do not rely on poems, but instead use methods such as remembering number patterns and the method of loci.

A few authors have used the digits of π to establish a new form of constrained writing, where the word lengths are required to represent the digits of π. The Cadaeic Cadenza contains the first 3835 digits of π in this manner, and the full-length book Not a Wake contains 10,000 words, each representing one digit of π.

image
A pi pie. Many pies are circular, and "pie" and π are homophones, making pie a frequent subject of pi puns.

Perhaps because of the simplicity of its definition and its ubiquitous presence in formulae, π has been represented in popular culture more than other mathematical constructs.

In the Palais de la Découverte (a science museum in Paris) there is a circular room known as the pi room. On its wall are inscribed 707 digits of π. The digits are large wooden characters attached to the dome-like ceiling. The digits were based on an 1873 calculation by English mathematician William Shanks, which included an error beginning at the 528th digit. The error was detected in 1946 and corrected in 1949.

In Carl Sagan's 1985 novel Contact it is suggested that the creator of the universe buried a message deep within the digits of π. This part of the story was omitted from the film adaptation of the novel. The digits of π have also been incorporated into the lyrics of the song "Pi" from the 2005 album Aerial by Kate Bush. In the 1967 Star Trek episode "Wolf in the Fold", an out-of-control computer is contained by being instructed to "Compute to the last digit the value of π".

In the United States, Pi Day falls on 14 March (written 3/14 in the US style), and is popular among students.π and its digital representation are often used by self-described "math geeks" for inside jokes among mathematically and technologically minded groups. A college cheer variously attributed to the Massachusetts Institute of Technology or the Rensselaer Polytechnic Institute includes "3.14159". Pi Day in 2015 was particularly significant because the date and time 3/14/15 9:26:53 reflected many more digits of pi. In parts of the world where dates are commonly noted in day/month/year format, 22 July represents "Pi Approximation Day", as 22/7 = 3.142857.

Some have proposed replacing π by τ = 2π, arguing that τ, as the number of radians in one turn or the ratio of a circle's circumference to its radius, is more natural than π and simplifies many formulae. This use of τ has not made its way into mainstream mathematics, but since 2010 this has led to people celebrating Two Pi Day or Tau Day on June 28.

In 1897, an amateur mathematician attempted to persuade the Indiana legislature to pass the Indiana Pi Bill, which described a method to square the circle and contained text that implied various incorrect values for π, including 3.2. The bill is notorious as an attempt to establish a value of mathematical constant by legislative fiat. The bill was passed by the Indiana House of Representatives, but rejected by the Senate, and thus it did not become a law.

In contemporary internet culture, individuals and organizations frequently pay homage to the number π. For instance, the computer scientist Donald Knuth let the version numbers of his program TeX approach π. The versions are 3, 3.1, 3.14, and so forth.

See also

References

Explanatory notes

  1. In particular, π is conjectured to be a normal number, which implies a specific kind of statistical randomness on its digits in all bases.
  2. The specific integral that Weierstrass used wasimage
  3. The polynomial shown is the first few terms of the Taylor series expansion of the sine function.

Citations

  1. Andrews, Askey & Roy 1999, p. 59.
  2. Gupta, R. C. (1992). "On the remainder term in the Madhava–Leibniz's series". Ganita Bharati. 14 (1–4): 68–71.
  3. Jones, William (1706). Synopsis Palmariorum Matheseos. London: J. Wale. pp. 243, 263. p. 263: There are various other ways of finding the Lengths, or Areas of particular Curve Lines or Planes, which may very much facilitate the Practice; as for instance, in the Circle, the Diameter is to Circumference as 1 to
    image
    3.14159, &c. = π. This Series (among others for the same purpose, and drawn from the same Principle) I receiv'd from the Excellent Analyst, and my much Esteem'd Friend Mr. John Machin; and by means thereof, Van Ceulen's Number, or that in Art. 64.38. may be Examin'd with all desireable Ease and Dispatch.

    Reprinted in Smith, David Eugene (1929). "William Jones: The First Use of π for the Circle Ratio". A Source Book in Mathematics. McGraw–Hill. pp. 346–347.

  4. e trillion digits of π". pi2e.ch. Archived from the original on 6 December 2016.
  5. Haruka Iwao, Emma (14 March 2019). "Pi in the sky: Calculating a record-breaking 31.4 trillion digits of Archimedes' constant on Google Cloud". Google Cloud Platform. Archived from the original on 19 October 2019. Retrieved 12 April 2019.
  6. Arndt & Haenel 2006, p. 17.
  7. Bailey, David H.; Plouffe, Simon M.; Borwein, Peter B.; Borwein, Jonathan M. (1997). "The quest for PI". The Mathematical Intelligencer. 19 (1): 50–56. CiteSeerX 10.1.1.138.7085. doi:10.1007/BF03024340. ISSN 0343-6993. S2CID 14318695.
  8. Oughtred, William (1652). Theorematum in libris Archimedis de sphaera et cylindro declarario (in Latin). Excudebat L. Lichfield, Veneunt apud T. Robinson. δ.π :: semidiameter. semiperipheria
  9. "pi". Dictionary.reference.com. 2 March 1993. Archived from the original on 28 July 2014. Retrieved 18 June 2012.
  10. Arndt & Haenel 2006, p. 8.
  11. Apostol, Tom (1967). Calculus. Vol. 1 (2nd ed.). Wiley. p. 102. From a logical point of view, this is unsatisfactory at the present stage because we have not yet discussed the concept of arc length
  12. Remmert 2012, p. 129.
  13. Remmert 2012, p. 148.
    Weierstrass, Karl (1841). "Darstellung einer analytischen Function einer complexen Veränderlichen, deren absoluter Betrag zwischen zwei gegebenen Grenzen liegt" [Representation of an analytical function of a complex variable, whose absolute value lies between two given limits]. Mathematische Werke (in German). Vol. 1. Berlin: Mayer & Müller (published 1894). pp. 51–66.
  14. Baltzer, Richard (1870). Die Elemente der Mathematik [The Elements of Mathematics] (in German). Hirzel. p. 195. Archived from the original on 14 September 2016.
  15. Landau, Edmund (1934). Einführung in die Differentialrechnung und Integralrechnung (in German). Noordoff. p. 193.
  16. Rudin, Walter (1976). Principles of Mathematical Analysis. McGraw-Hill. p. 183. ISBN 978-0-07-054235-8.
  17. Rudin, Walter (1986). Real and complex analysis. McGraw-Hill. p. 2.
  18. Ahlfors, Lars (1966). Complex analysis. McGraw-Hill. p. 46.

The number p p aɪ spelled out as pi is a mathematical constant approximately equal to 3 14159 that is the ratio of a circle s circumference to its diameter It appears in many formulae across mathematics and physics and some of these formulae are commonly used for defining p to avoid relying on the definition of the length of a curve The number p is an irrational number meaning that it cannot be expressed exactly as a ratio of two integers although fractions such as 227 displaystyle tfrac 22 7 are commonly used to approximate it Consequently its decimal representation never ends nor enters a permanently repeating pattern It is a transcendental number meaning that it cannot be a solution of an algebraic equation involving only finite sums products powers and integers The transcendence of p implies that it is impossible to solve the ancient challenge of squaring the circle with a compass and straightedge The decimal digits of p appear to be randomly distributed but no proof of this conjecture has been found For thousands of years mathematicians have attempted to extend their understanding of p sometimes by computing its value to a high degree of accuracy Ancient civilizations including the Egyptians and Babylonians required fairly accurate approximations of p for practical computations Around 250 BC the Greek mathematician Archimedes created an algorithm to approximate p with arbitrary accuracy In the 5th century AD Chinese mathematicians approximated p to seven digits while Indian mathematicians made a five digit approximation both using geometrical techniques The first computational formula for p based on infinite series was discovered a millennium later The earliest known use of the Greek letter p to represent the ratio of a circle s circumference to its diameter was by the Welsh mathematician William Jones in 1706 The invention of calculus soon led to the calculation of hundreds of digits of p enough for all practical scientific computations Nevertheless in the 20th and 21st centuries mathematicians and computer scientists have pursued new approaches that when combined with increasing computational power extended the decimal representation of p to many trillions of digits These computations are motivated by the development of efficient algorithms to calculate numeric series as well as the human quest to break records The extensive computations involved have also been used to test supercomputers as well as stress testing consumer computer hardware Because it relates to a circle p is found in many formulae in trigonometry and geometry especially those concerning circles ellipses and spheres It is also found in formulae from other topics in science such as cosmology fractals thermodynamics mechanics and electromagnetism It also appears in areas having little to do with geometry such as number theory and statistics and in modern mathematical analysis can be defined without any reference to geometry The ubiquity of p makes it one of the most widely known mathematical constants inside and outside of science Several books devoted to p have been published and record setting calculations of the digits of p often result in news headlines FundamentalsName The symbol used by mathematicians to represent the ratio of a circle s circumference to its diameter is the lowercase Greek letter p sometimes spelled out as pi In English p is pronounced as pie p aɪ PY In mathematical use the lowercase letter p is distinguished from its capitalized and enlarged counterpart P which denotes a product of a sequence analogous to how S denotes summation The choice of the symbol p is discussed in the section Adoption of the symbol p Definition The circumference of a circle is slightly more than three times as long as its diameter The exact ratio is called p p is commonly defined as the ratio of a circle s circumference C to its diameter d p Cd displaystyle pi frac C d The ratio Cd textstyle frac C d is constant regardless of the circle s size For example if a circle has twice the diameter of another circle it will also have twice the circumference preserving the ratio Cd textstyle frac C d This definition of p implicitly makes use of flat Euclidean geometry although the notion of a circle can be extended to any curve non Euclidean geometry these new circles will no longer satisfy the formula p Cd textstyle pi frac C d Here the circumference of a circle is the arc length around the perimeter of the circle a quantity which can be formally defined independently of geometry using limits a concept in calculus For example one may directly compute the arc length of the top half of the unit circle given in Cartesian coordinates by the equation x2 y2 1 textstyle x 2 y 2 1 as the integral p 11dx1 x2 displaystyle pi int 1 1 frac dx sqrt 1 x 2 An integral such as this was proposed as a definition of p by Karl Weierstrass who defined it directly as an integral in 1841 Integration is no longer commonly used in a first analytical definition because as Remmert 2012 explains differential calculus typically precedes integral calculus in the university curriculum so it is desirable to have a definition of p that does not rely on the latter One such definition due to Richard Baltzer and popularized by Edmund Landau is the following p is twice the smallest positive number at which the cosine function equals 0 p is also the smallest positive number at which the sine function equals zero and the difference between consecutive zeroes of the sine function The cosine and sine can be defined independently of geometry as a power series or as the solution of a differential equation In a similar spirit p can be defined using properties of the complex exponential exp z of a complex variable z Like the cosine the complex exponential can be defined in one of several ways The set of complex numbers at which exp z is equal to one is then an imaginary arithmetic progression of the form 2pi 0 2pi 4pi 2pki k Z displaystyle dots 2 pi i 0 2 pi i 4 pi i dots 2 pi ki mid k in mathbb Z and there is a unique positive real number p with this property A variation on the same idea making use of sophisticated mathematical concepts of topology and algebra is the following theorem there is a unique up to automorphism continuous isomorphism from the group R Z of real numbers under addition modulo integers the circle group onto the multiplicative group of complex numbers of absolute value one The number p is then defined as half the magnitude of the derivative of this homomorphism Irrationality and normality p is an irrational number meaning that it cannot be written as the ratio of two integers Fractions such as 22 7 and 355 113 are commonly used to approximate p but no common fraction ratio of whole numbers can be its exact value Because p is irrational it has an infinite number of digits in its decimal representation and does not settle into an infinitely repeating pattern of digits There are several proofs that p is irrational they generally require calculus and rely on the reductio ad absurdum technique The degree to which p can be approximated by rational numbers called the irrationality measure is not precisely known estimates have established that the irrationality measure is larger or at least equal to the measure of e but smaller than the measure of Liouville numbers The digits of p have no apparent pattern and have passed tests for statistical randomness including tests for normality a number of infinite length is called normal when all possible sequences of digits of any given length appear equally often The conjecture that p is normal has not been proven or disproven Since the advent of computers a large number of digits of p have been available on which to perform statistical analysis Yasumasa Kanada has performed detailed statistical analyses on the decimal digits of p and found them consistent with normality for example the frequencies of the ten digits 0 to 9 were subjected to statistical significance tests and no evidence of a pattern was found Any random sequence of digits contains arbitrarily long subsequences that appear non random by the infinite monkey theorem Thus because the sequence of p s digits passes statistical tests for randomness it contains some sequences of digits that may appear non random such as a sequence of six consecutive 9s that begins at the 762nd decimal place of the decimal representation of p This is also called the Feynman point in mathematical folklore after Richard Feynman although no connection to Feynman is known Transcendence Because p is a transcendental number squaring the circle is not possible in a finite number of steps using the classical tools of compass and straightedge In addition to being irrational p is also a transcendental number which means that it is not the solution of any non constant polynomial equation with rational coefficients such as x5120 x36 x 0 textstyle frac x 5 120 frac x 3 6 x 0 This follows from the so called Lindemann Weierstrass theorem which also establishes the transcendence of the constant e The transcendence of p has two important consequences First p cannot be expressed using any finite combination of rational numbers and square roots or n th roots such as 313 displaystyle sqrt 3 31 or 10 displaystyle sqrt 10 Second since no transcendental number can be constructed with compass and straightedge it is not possible to square the circle In other words it is impossible to construct using compass and straightedge alone a square whose area is exactly equal to the area of a given circle Squaring a circle was one of the important geometry problems of the classical antiquity Amateur mathematicians in modern times have sometimes attempted to square the circle and claim success despite the fact that it is mathematically impossible An unsolved problem thus far is the question of whether or not the numbers p and e are algebraically independent relatively transcendental This would be resolved by Schanuel s conjecture a currently unproven generalization of the Lindemann Weierstrass theorem Continued fractions As an irrational number p cannot be represented as a common fraction But every number including p can be represented by an infinite series of nested fractions called a simple continued fraction p 3 17 115 11 1292 11 11 11 displaystyle pi 3 textstyle cfrac 1 7 textstyle cfrac 1 15 textstyle cfrac 1 1 textstyle cfrac 1 292 textstyle cfrac 1 1 textstyle cfrac 1 1 textstyle cfrac 1 1 ddots Truncating the continued fraction at any point yields a rational approximation for p the first four of these are 3 22 7 333 106 and 355 113 These numbers are among the best known and most widely used historical approximations of the constant Each approximation generated in this way is a best rational approximation that is each is closer to p than any other fraction with the same or a smaller denominator Because p is transcendental it is by definition not algebraic and so cannot be a quadratic irrational Therefore p cannot have a periodic continued fraction Although the simple continued fraction for p with numerators all 1 shown above also does not exhibit any other obvious pattern several non simple continued fractions do such as p 3 126 326 526 726 41 122 322 522 41 123 225 327 displaystyle begin aligned pi amp 3 cfrac 1 2 6 cfrac 3 2 6 cfrac 5 2 6 cfrac 7 2 6 ddots cfrac 4 1 cfrac 1 2 2 cfrac 3 2 2 cfrac 5 2 2 ddots cfrac 4 1 cfrac 1 2 3 cfrac 2 2 5 cfrac 3 2 7 ddots end aligned The middle of these is due to the mid 17th century mathematician William Brouncker see Brouncker s formula Approximate value and digits Some approximations of pi include Integers 3 Fractions Approximate fractions include in order of increasing accuracy 22 7 333 106 355 113 52163 16604 103993 33102 104348 33215 and 245850922 78256779 List is selected terms from OEIS A063674 and OEIS A063673 Digits The first 50 decimal digits are 3 1415926535 89793 23846 26433 83279 50288 41971 69399 37510 see OEIS A000796 Digits in other number systems The first 48 binary base 2 digits called bits are 11 00100100 0011 1111 0110 1010 1000 1000 1000 0101 1010 0011 see OEIS A004601 The first 36 digits in ternary base 3 are 10 010211 012 222 010 211 002 111 110 221 222 220 see OEIS A004602 The first 20 digits in hexadecimal base 16 are 3 243F6A88 85A3 08D3 1319 see OEIS A062964 The first five sexagesimal base 60 digits are 3 8 29 44 0 47 see OEIS A060707 Complex numbers and Euler s identity The association between imaginary powers of the number e and points on the unit circle centred at the origin in the complex plane given by Euler s formula Any complex number say z can be expressed using a pair of real numbers In the polar coordinate system one number radius or r is used to represent z s distance from the origin of the complex plane and the other angle or f the counter clockwise rotation from the positive real line z r cos f isin f displaystyle z r cdot cos varphi i sin varphi where i is the imaginary unit satisfying i2 1 displaystyle i 2 1 The frequent appearance of p in complex analysis can be related to the behaviour of the exponential function of a complex variable described by Euler s formula eif cos f isin f displaystyle e i varphi cos varphi i sin varphi where the constant e is the base of the natural logarithm This formula establishes a correspondence between imaginary powers of e and points on the unit circle centred at the origin of the complex plane Setting f p displaystyle varphi pi in Euler s formula results in Euler s identity celebrated in mathematics due to it containing five important mathematical constants eip 1 0 displaystyle e i pi 1 0 There are n different complex numbers z satisfying zn 1 displaystyle z n 1 and these are called the n th roots of unity and are given by the formula e2pik n k 0 1 2 n 1 displaystyle e 2 pi ik n qquad k 0 1 2 dots n 1 HistoryAntiquity The best known approximations to p dating before the Common Era were accurate to two decimal places this was improved upon in Chinese mathematics in particular by the mid first millennium to an accuracy of seven decimal places After this no further progress was made until the late medieval period The earliest written approximations of p are found in Babylon and Egypt both within one percent of the true value In Babylon a clay tablet dated 1900 1600 BC has a geometrical statement that by implication treats p as 25 8 3 125 In Egypt the Rhind Papyrus dated around 1650 BC but copied from a document dated to 1850 BC has a formula for the area of a circle that treats p as 169 2 3 16 textstyle bigl frac 16 9 bigr 2 approx 3 16 Although some pyramidologists have theorized that the Great Pyramid of Giza was built with proportions related to p this theory is not widely accepted by scholars In the Shulba Sutras of Indian mathematics dating to an oral tradition from the first or second millennium BC approximations are given which have been variously interpreted as approximately 3 08831 3 08833 3 004 3 or 3 125 Polygon approximation era Archimedes developed the polygonal approach to approximating p p can be estimated by computing the perimeters of circumscribed and inscribed polygons The first recorded algorithm for rigorously calculating the value of p was a geometrical approach using polygons devised around 250 BC by the Greek mathematician Archimedes implementing the method of exhaustion This polygonal algorithm dominated for over 1 000 years and as a result p is sometimes referred to as Archimedes s constant Archimedes computed upper and lower bounds of p by drawing a regular hexagon inside and outside a circle and successively doubling the number of sides until he reached a 96 sided regular polygon By calculating the perimeters of these polygons he proved that 223 71 lt p lt 22 7 that is 3 1408 lt p lt 3 1429 Archimedes upper bound of 22 7 may have led to a widespread popular belief that p is equal to 22 7 Around 150 AD Greek Roman scientist Ptolemy in his Almagest gave a value for p of 3 1416 which he may have obtained from Archimedes or from Apollonius of Perga Mathematicians using polygonal algorithms reached 39 digits of p in 1630 a record only broken in 1699 when infinite series were used to reach 71 digits In ancient China values for p included 3 1547 around 1 AD 10 displaystyle sqrt 10 100 AD approximately 3 1623 and 142 45 3rd century approximately 3 1556 Around 265 AD the Wei Kingdom mathematician Liu Hui created a polygon based iterative algorithm and used it with a 3 072 sided polygon to obtain a value of p of 3 1416 Liu later invented a faster method of calculating p and obtained a value of 3 14 with a 96 sided polygon by taking advantage of the fact that the differences in area of successive polygons form a geometric series with a factor of 4 The Chinese mathematician Zu Chongzhi around 480 AD calculated that 3 1415926 lt p lt 3 1415927 displaystyle 3 1415926 lt pi lt 3 1415927 and suggested the approximations p 355113 3 14159292035 textstyle pi approx frac 355 113 3 14159292035 and p 227 3 142857142857 textstyle pi approx frac 22 7 3 142857142857 which he termed the Milu close ratio and Yuelu approximate ratio respectively using Liu Hui s algorithm applied to a 12 288 sided polygon With a correct value for its seven first decimal digits this value remained the most accurate approximation of p available for the next 800 years The Indian astronomer Aryabhata used a value of 3 1416 in his Aryabhaṭiya 499 AD Fibonacci in c 1220 computed 3 1418 using a polygonal method independent of Archimedes Italian author Dante apparently employed the value 3 210 3 14142 textstyle 3 frac sqrt 2 10 approx 3 14142 The Persian astronomer Jamshid al Kashi produced nine sexagesimal digits roughly the equivalent of 16 decimal digits in 1424 using a polygon with 3 228 textstyle 3 times 2 28 sides which stood as the world record for about 180 years French mathematician Francois Viete in 1579 achieved nine digits with a polygon of 3 217 textstyle 3 times 2 17 sides Flemish mathematician Adriaan van Roomen arrived at 15 decimal places in 1593 In 1596 Dutch mathematician Ludolph van Ceulen reached 20 digits a record he later increased to 35 digits as a result p was called the Ludolphian number in Germany until the early 20th century Dutch scientist Willebrord Snellius reached 34 digits in 1621 and Austrian astronomer Christoph Grienberger arrived at 38 digits in 1630 using 1040 sides Christiaan Huygens was able to arrive at 10 decimal places in 1654 using a slightly different method equivalent to Richardson extrapolation Infinite series Comparison of the convergence of several historical infinite series for p Sn is the approximation after taking n terms Each subsequent subplot magnifies the shaded area horizontally by 10 times click for detail The calculation of p was revolutionized by the development of infinite series techniques in the 16th and 17th centuries An infinite series is the sum of the terms of an infinite sequence Infinite series allowed mathematicians to compute p with much greater precision than Archimedes and others who used geometrical techniques Although infinite series were exploited for p most notably by European mathematicians such as James Gregory and Gottfried Wilhelm Leibniz the approach also appeared in the Kerala school sometime in the 14th or 15th century Around 1500 AD a written description of an infinite series that could be used to compute p was laid out in Sanskrit verse in Tantrasamgraha by Nilakantha Somayaji The series are presented without proof but proofs are presented in a later work Yuktibhaṣa from around 1530 AD Several infinite series are described including series for sine which Nilakantha attributes to Madhava of Sangamagrama cosine and arctangent which are now sometimes referred to as Madhava series The series for arctangent is sometimes called Gregory s series or the Gregory Leibniz series Madhava used infinite series to estimate p to 11 digits around 1400 In 1593 Francois Viete published what is now known as Viete s formula an infinite product rather than an infinite sum which is more typically used in p calculations 2p 22 2 22 2 2 22 displaystyle frac 2 pi frac sqrt 2 2 cdot frac sqrt 2 sqrt 2 2 cdot frac sqrt 2 sqrt 2 sqrt 2 2 cdots In 1655 John Wallis published what is now known as Wallis product also an infinite product p2 21 23 43 45 65 67 87 89 displaystyle frac pi 2 Big frac 2 1 cdot frac 2 3 Big cdot Big frac 4 3 cdot frac 4 5 Big cdot Big frac 6 5 cdot frac 6 7 Big cdot Big frac 8 7 cdot frac 8 9 Big cdots Isaac Newton used infinite series to compute p to 15 digits later writing I am ashamed to tell you to how many figures I carried these computations In the 1660s the English scientist Isaac Newton and German mathematician Gottfried Wilhelm Leibniz discovered calculus which led to the development of many infinite series for approximating p Newton himself used an arcsine series to compute a 15 digit approximation of p in 1665 or 1666 writing I am ashamed to tell you to how many figures I carried these computations having no other business at the time In 1671 James Gregory and independently Leibniz in 1673 discovered the Taylor series expansion for arctangent arctan z z z33 z55 z77 displaystyle arctan z z frac z 3 3 frac z 5 5 frac z 7 7 cdots This series sometimes called the Gregory Leibniz series equals p4 textstyle frac pi 4 when evaluated with z 1 displaystyle z 1 But for z 1 displaystyle z 1 it converges impractically slowly that is approaches the answer very gradually taking about ten times as many terms to calculate each additional digit In 1699 English mathematician Abraham Sharp used the Gregory Leibniz series for z 13 textstyle z frac 1 sqrt 3 to compute p to 71 digits breaking the previous record of 39 digits which was set with a polygonal algorithm In 1706 John Machin used the Gregory Leibniz series to produce an algorithm that converged much faster p4 4arctan 15 arctan 1239 displaystyle frac pi 4 4 arctan frac 1 5 arctan frac 1 239 Machin reached 100 digits of p with this formula Other mathematicians created variants now known as Machin like formulae that were used to set several successive records for calculating digits of p Isaac Newton accelerated the convergence of the Gregory Leibniz series in 1684 in an unpublished work others independently discovered the result arctan x x1 x2 23x3 1 x2 2 2 43 5x5 1 x2 3 displaystyle arctan x frac x 1 x 2 frac 2 3 frac x 3 1 x 2 2 frac 2 cdot 4 3 cdot 5 frac x 5 1 x 2 3 cdots Leonhard Euler popularized this series in his 1755 differential calculus textbook and later used it with Machin like formulae including p4 5arctan 17 2arctan 379 textstyle tfrac pi 4 5 arctan tfrac 1 7 2 arctan tfrac 3 79 with which he computed 20 digits of p in one hour Machin like formulae remained the best known method for calculating p well into the age of computers and were used to set records for 250 years culminating in a 620 digit approximation in 1946 by Daniel Ferguson the best approximation achieved without the aid of a calculating device In 1844 a record was set by Zacharias Dase who employed a Machin like formula to calculate 200 decimals of p in his head at the behest of German mathematician Carl Friedrich Gauss In 1853 British mathematician William Shanks calculated p to 607 digits but made a mistake in the 528th digit rendering all subsequent digits incorrect Though he calculated an additional 100 digits in 1873 bringing the total up to 707 his previous mistake rendered all the new digits incorrect as well Rate of convergence Some infinite series for p converge faster than others Given the choice of two infinite series for p mathematicians will generally use the one that converges more rapidly because faster convergence reduces the amount of computation needed to calculate p to any given accuracy A simple infinite series for p is the Gregory Leibniz series p 41 43 45 47 49 411 413 displaystyle pi frac 4 1 frac 4 3 frac 4 5 frac 4 7 frac 4 9 frac 4 11 frac 4 13 cdots As individual terms of this infinite series are added to the sum the total gradually gets closer to p and with a sufficient number of terms can get as close to p as desired It converges quite slowly though after 500 000 terms it produces only five correct decimal digits of p An infinite series for p published by Nilakantha in the 15th century that converges more rapidly than the Gregory Leibniz series is p 3 42 3 4 44 5 6 46 7 8 48 9 10 displaystyle pi 3 frac 4 2 times 3 times 4 frac 4 4 times 5 times 6 frac 4 6 times 7 times 8 frac 4 8 times 9 times 10 cdots The following table compares the convergence rates of these two series Infinite series for p After 1st term After 2nd term After 3rd term After 4th term After 5th term Converges to p 41 43 45 47 49 411 413 displaystyle pi frac 4 1 frac 4 3 frac 4 5 frac 4 7 frac 4 9 frac 4 11 frac 4 13 cdots 4 0000 2 6666 3 4666 2 8952 3 3396 p 3 1415 p 3 42 3 4 44 5 6 46 7 8 displaystyle pi 3 frac 4 2 times 3 times 4 frac 4 4 times 5 times 6 frac 4 6 times 7 times 8 cdots 3 0000 3 1666 3 1333 3 1452 3 1396 After five terms the sum of the Gregory Leibniz series is within 0 2 of the correct value of p whereas the sum of Nilakantha s series is within 0 002 of the correct value Nilakantha s series converges faster and is more useful for computing digits of p Series that converge even faster include Machin s series and Chudnovsky s series the latter producing 14 correct decimal digits per term Irrationality and transcendence Not all mathematical advances relating to p were aimed at increasing the accuracy of approximations When Euler solved the Basel problem in 1735 finding the exact value of the sum of the reciprocal squares he established a connection between p and the prime numbers that later contributed to the development and study of the Riemann zeta function p26 112 122 132 142 displaystyle frac pi 2 6 frac 1 1 2 frac 1 2 2 frac 1 3 2 frac 1 4 2 cdots Swiss scientist Johann Heinrich Lambert in 1768 proved that p is irrational meaning it is not equal to the quotient of any two integers Lambert s proof exploited a continued fraction representation of the tangent function French mathematician Adrien Marie Legendre proved in 1794 that p 2 is also irrational In 1882 German mathematician Ferdinand von Lindemann proved that p is transcendental confirming a conjecture made by both Legendre and Euler Hardy and Wright states that the proofs were afterwards modified and simplified by Hilbert Hurwitz and other writers Adoption of the symbol p The earliest known use of the Greek letter p to represent the ratio of a circle s circumference to its diameter was by Welsh mathematician William Jones in 1706Leonhard Euler popularized the use of the Greek letter p in works he published in 1736 and 1748 The first recorded use of the symbol p in circle geometry is in Oughtred s Clavis Mathematicae 1648 where the Greek letters p and d were combined into the fraction pd displaystyle tfrac pi delta for denoting the ratios semiperimeter to semidiameter and perimeter to diameter that is what is presently denoted as p Before then mathematicians sometimes used letters such as c or p instead Barrow likewise used the same notation while Gregory instead used pr textstyle frac pi rho to represent 6 28 The earliest known use of the Greek letter p alone to represent the ratio of a circle s circumference to its diameter was by Welsh mathematician William Jones in his 1706 work Synopsis Palmariorum Matheseos or a New Introduction to the Mathematics The Greek letter appears on p 243 in the phrase 12 textstyle tfrac 1 2 Periphery p calculated for a circle with radius one However Jones writes that his equations for p are from the ready pen of the truly ingenious Mr John Machin leading to speculation that Machin may have employed the Greek letter before Jones Jones notation was not immediately adopted by other mathematicians with the fraction notation still being used as late as 1767 Euler started using the single letter form beginning with his 1727 Essay Explaining the Properties of Air though he used p 6 28 the ratio of periphery to radius in this and some later writing Euler first used p 3 14 in his 1736 work Mechanica and continued in his widely read 1748 work Introductio in analysin infinitorum he wrote for the sake of brevity we will write this number as p thus p is equal to half the circumference of a circle of radius 1 Because Euler corresponded heavily with other mathematicians in Europe the use of the Greek letter spread rapidly and the practice was universally adopted thereafter in the Western world though the definition still varied between 3 14 and 6 28 as late as 1761 Modern quest for more digitsComputer era and iterative algorithms The Gauss Legendre iterative algorithm Initialize a0 1 b0 12 t0 14 p0 1 displaystyle textstyle a 0 1 quad b 0 frac 1 sqrt 2 quad t 0 frac 1 4 quad p 0 1 Iterate an 1 an bn2 bn 1 anbn displaystyle textstyle a n 1 frac a n b n 2 quad quad b n 1 sqrt a n b n tn 1 tn pn an an 1 2 pn 1 2pn displaystyle textstyle t n 1 t n p n a n a n 1 2 quad quad p n 1 2p n Then an estimate for p is given by p an bn 24tn displaystyle textstyle pi approx frac a n b n 2 4t n The development of computers in the mid 20th century again revolutionized the hunt for digits of p Mathematicians John Wrench and Levi Smith reached 1 120 digits in 1949 using a desk calculator Using an inverse tangent arctan infinite series a team led by George Reitwiesner and John von Neumann that same year achieved 2 037 digits with a calculation that took 70 hours of computer time on the ENIAC computer The record always relying on an arctan series was broken repeatedly 3089 digits in 1955 7 480 digits in 1957 10 000 digits in 1958 100 000 digits in 1961 until 1 million digits was reached in 1973 Two additional developments around 1980 once again accelerated the ability to compute p First the discovery of new iterative algorithms for computing p which were much faster than the infinite series and second the invention of fast multiplication algorithms that could multiply large numbers very rapidly Such algorithms are particularly important in modern p computations because most of the computer s time is devoted to multiplication They include the Karatsuba algorithm Toom Cook multiplication and Fourier transform based methods The iterative algorithms were independently published in 1975 1976 by physicist Eugene Salamin and scientist Richard Brent These avoid reliance on infinite series An iterative algorithm repeats a specific calculation each iteration using the outputs from prior steps as its inputs and produces a result in each step that converges to the desired value The approach was actually invented over 160 years earlier by Carl Friedrich Gauss in what is now termed the arithmetic geometric mean method AGM method or Gauss Legendre algorithm As modified by Salamin and Brent it is also referred to as the Brent Salamin algorithm The iterative algorithms were widely used after 1980 because they are faster than infinite series algorithms whereas infinite series typically increase the number of correct digits additively in successive terms iterative algorithms generally multiply the number of correct digits at each step For example the Brent Salamin algorithm doubles the number of digits in each iteration In 1984 brothers John and Peter Borwein produced an iterative algorithm that quadruples the number of digits in each step and in 1987 one that increases the number of digits five times in each step Iterative methods were used by Japanese mathematician Yasumasa Kanada to set several records for computing p between 1995 and 2002 This rapid convergence comes at a price the iterative algorithms require significantly more memory than infinite series Motives for computing p As mathematicians discovered new algorithms and computers became available the number of known decimal digits of p increased dramatically The vertical scale is logarithmic For most numerical calculations involving p a handful of digits provide sufficient precision According to Jorg Arndt and Christoph Haenel thirty nine digits are sufficient to perform most cosmological calculations because that is the accuracy necessary to calculate the circumference of the observable universe with a precision of one atom Accounting for additional digits needed to compensate for computational round off errors Arndt concludes that a few hundred digits would suffice for any scientific application Despite this people have worked strenuously to compute p to thousands and millions of digits This effort may be partly ascribed to the human compulsion to break records and such achievements with p often make headlines around the world They also have practical benefits such as testing supercomputers testing numerical analysis algorithms including high precision multiplication algorithms and within pure mathematics itself providing data for evaluating the randomness of the digits of p Rapidly convergent series Srinivasa Ramanujan working in isolation in India produced many innovative series for computing p Modern p calculators do not use iterative algorithms exclusively New infinite series were discovered in the 1980s and 1990s that are as fast as iterative algorithms yet are simpler and less memory intensive The fast iterative algorithms were anticipated in 1914 when Indian mathematician Srinivasa Ramanujan published dozens of innovative new formulae for p remarkable for their elegance mathematical depth and rapid convergence One of his formulae based on modular equations is 1p 229801 k 0 4k 1103 26390k k 4 3964k displaystyle frac 1 pi frac 2 sqrt 2 9801 sum k 0 infty frac 4k 1103 26390k k 4 left 396 4k right This series converges much more rapidly than most arctan series including Machin s formula Bill Gosper was the first to use it for advances in the calculation of p setting a record of 17 million digits in 1985 Ramanujan s formulae anticipated the modern algorithms developed by the Borwein brothers Jonathan and Peter and the Chudnovsky brothers The Chudnovsky formula developed in 1987 is 1p 100054270934400 k 0 6k 13591409 545140134k 3k k 3 640320 3k displaystyle frac 1 pi frac sqrt 10005 4270934400 sum k 0 infty frac 6k 13591409 545140134k 3k k 3 640320 3k It produces about 14 digits of p per term and has been used for several record setting p calculations including the first to surpass 1 billion 109 digits in 1989 by the Chudnovsky brothers 10 trillion 1013 digits in 2011 by Alexander Yee and Shigeru Kondo and 100 trillion digits by Emma Haruka Iwao in 2022 For similar formulae see also the Ramanujan Sato series In 2006 mathematician Simon Plouffe used the PSLQ integer relation algorithm to generate several new formulae for p conforming to the following template pk n 1 1nk aqn 1 bq2n 1 cq4n 1 displaystyle pi k sum n 1 infty frac 1 n k left frac a q n 1 frac b q 2n 1 frac c q 4n 1 right where q is ep Gelfond s constant k is an odd number and a b c are certain rational numbers that Plouffe computed Monte Carlo methods Buffon s needle Needles a and b are dropped randomly Random dots are placed on a square and a circle inscribed inside Monte Carlo methods which evaluate the results of multiple random trials can be used to create approximations of p Buffon s needle is one such technique If a needle of length ℓ is dropped n times on a surface on which parallel lines are drawn t units apart and if x of those times it comes to rest crossing a line x gt 0 then one may approximate p based on the counts p 2nℓxt displaystyle pi approx frac 2n ell xt Another Monte Carlo method for computing p is to draw a circle inscribed in a square and randomly place dots in the square The ratio of dots inside the circle to the total number of dots will approximately equal p 4 Five random walks with 200 steps The sample mean of W200 is m 56 5 and so 2 200 m 2 3 19 is within 0 05 of p Another way to calculate p using probability is to start with a random walk generated by a sequence of fair coin tosses independent random variables Xk such that Xk 1 1 with equal probabilities The associated random walk is Wn k 1nXk displaystyle W n sum k 1 n X k so that for each n Wn is drawn from a shifted and scaled binomial distribution As n varies Wn defines a discrete stochastic process Then p can be calculated byp limn 2nE Wn 2 displaystyle pi lim n to infty frac 2n E W n 2 This Monte Carlo method is independent of any relation to circles and is a consequence of the central limit theorem discussed below These Monte Carlo methods for approximating p are very slow compared to other methods and do not provide any information on the exact number of digits that are obtained Thus they are never used to approximate p when speed or accuracy is desired Spigot algorithms Two algorithms were discovered in 1995 that opened up new avenues of research into p They are called spigot algorithms because like water dripping from a spigot they produce single digits of p that are not reused after they are calculated This is in contrast to infinite series or iterative algorithms which retain and use all intermediate digits until the final result is produced Mathematicians Stan Wagon and Stanley Rabinowitz produced a simple spigot algorithm in 1995 Its speed is comparable to arctan algorithms but not as fast as iterative algorithms Another spigot algorithm the BBP digit extraction algorithm was discovered in 1995 by Simon Plouffe p k 0 116k 48k 1 28k 4 18k 5 18k 6 displaystyle pi sum k 0 infty frac 1 16 k left frac 4 8k 1 frac 2 8k 4 frac 1 8k 5 frac 1 8k 6 right This formula unlike others before it can produce any individual hexadecimal digit of p without calculating all the preceding digits Individual binary digits may be extracted from individual hexadecimal digits and octal digits can be extracted from one or two hexadecimal digits An important application of digit extraction algorithms is to validate new claims of record p computations After a new record is claimed the decimal result is converted to hexadecimal and then a digit extraction algorithm is used to calculate several randomly selected hexadecimal digits near the end if they match this provides a measure of confidence that the entire computation is correct Between 1998 and 2000 the distributed computing project PiHex used Bellard s formula a modification of the BBP algorithm to compute the quadrillionth 1015th bit of p which turned out to be 0 In September 2010 a Yahoo employee used the company s Hadoop application on one thousand computers over a 23 day period to compute 256 bits of p at the two quadrillionth 2 1015th bit which also happens to be zero In 2022 Plouffe found a base 10 algorithm for calculating digits of p Role and characterizations in mathematicsBecause p is closely related to the circle it is found in many formulae from the fields of geometry and trigonometry particularly those concerning circles spheres or ellipses Other branches of science such as statistics physics Fourier analysis and number theory also include p in some of their important formulae Geometry and trigonometry The area of the circle equals p times the shaded area The area of the unit circle is p p appears in formulae for areas and volumes of geometrical shapes based on circles such as ellipses spheres cones and tori Below are some of the more common formulae that involve p The circumference of a circle with radius r is 2pr The area of a circle with radius r is pr2 The area of an ellipse with semi major axis a and semi minor axis b is pab The volume of a sphere with radius r is 4 3 pr3 The surface area of a sphere with radius r is 4pr2 Some of the formulae above are special cases of the volume of the n dimensional ball and the surface area of its boundary the n 1 dimensional sphere given below Apart from circles there are other curves of constant width By Barbier s theorem every curve of constant width has perimeter p times its width The Reuleaux triangle formed by the intersection of three circles with the sides of an equilateral triangle as their radii has the smallest possible area for its width and the circle the largest There also exist non circular smooth and even algebraic curves of constant width Definite integrals that describe circumference area or volume of shapes generated by circles typically have values that involve p For example an integral that specifies half the area of a circle of radius one is given by 111 x2dx p2 displaystyle int 1 1 sqrt 1 x 2 dx frac pi 2 In that integral the function 1 x2 displaystyle sqrt 1 x 2 represents the height over the x displaystyle x axis of a semicircle the square root is a consequence of the Pythagorean theorem and the integral computes the area below the semicircle The existence of such integrals makes p an algebraic period Units of angle Sine and cosine functions repeat with period 2p The trigonometric functions rely on angles and mathematicians generally use radians as units of measurement p plays an important role in angles measured in radians which are defined so that a complete circle spans an angle of 2p radians The angle measure of 180 is equal to p radians and 1 p 180 radians Common trigonometric functions have periods that are multiples of p for example sine and cosine have period 2p so for any angle 8 and any integer k sin 8 sin 8 2pk and cos 8 cos 8 2pk displaystyle sin theta sin left theta 2 pi k right text and cos theta cos left theta 2 pi k right Eigenvalues The overtones of a vibrating string are eigenfunctions of the second derivative and form a harmonic progression The associated eigenvalues form the arithmetic progression of integer multiples of p Many of the appearances of p in the formulae of mathematics and the sciences have to do with its close relationship with geometry However p also appears in many natural situations having apparently nothing to do with geometry In many applications it plays a distinguished role as an eigenvalue For example an idealized vibrating string can be modelled as the graph of a function f on the unit interval 0 1 with fixed ends f 0 f 1 0 The modes of vibration of the string are solutions of the differential equation f x lf x 0 displaystyle f x lambda f x 0 or f t lf x displaystyle f t lambda f x Thus l is an eigenvalue of the second derivative operator f f displaystyle f mapsto f and is constrained by Sturm Liouville theory to take on only certain specific values It must be positive since the operator is negative definite so it is convenient to write l n2 where n gt 0 is called the wavenumber Then f x sin p x satisfies the boundary conditions and the differential equation with n p The value p is in fact the least such value of the wavenumber and is associated with the fundamental mode of vibration of the string One way to show this is by estimating the energy which satisfies Wirtinger s inequality for a function f 0 1 C displaystyle f 0 1 to mathbb C with f 0 f 1 0 and f f both square integrable we have p2 01 f x 2dx 01 f x 2dx displaystyle pi 2 int 0 1 f x 2 dx leq int 0 1 f x 2 dx with equality precisely when f is a multiple of sin p x Here p appears as an optimal constant in Wirtinger s inequality and it follows that it is the smallest wavenumber using the variational characterization of the eigenvalue As a consequence p is the smallest singular value of the derivative operator on the space of functions on 0 1 vanishing at both endpoints the Sobolev space H01 0 1 displaystyle H 0 1 0 1 Inequalities The ancient city of Carthage was the solution to an isoperimetric problem according to a legend recounted by Lord Kelvin those lands bordering the sea that Queen Dido could enclose on all other sides within a single given oxhide cut into strips The number p serves appears in similar eigenvalue problems in higher dimensional analysis As mentioned above it can be characterized via its role as the best constant in the isoperimetric inequality the area A enclosed by a plane Jordan curve of perimeter P satisfies the inequality 4pA P2 displaystyle 4 pi A leq P 2 and equality is clearly achieved for the circle since in that case A pr2 and P 2pr Ultimately as a consequence of the isoperimetric inequality p appears in the optimal constant for the critical Sobolev inequality in n dimensions which thus characterizes the role of p in many physical phenomena as well for example those of classical potential theory In two dimensions the critical Sobolev inequality is 2p f 2 f 1 displaystyle 2 pi f 2 leq nabla f 1 for f a smooth function with compact support in R2 f displaystyle nabla f is the gradient of f and f 2 displaystyle f 2 and f 1 displaystyle nabla f 1 refer respectively to the L2 and L1 norm The Sobolev inequality is equivalent to the isoperimetric inequality in any dimension with the same best constants Wirtinger s inequality also generalizes to higher dimensional Poincare inequalities that provide best constants for the Dirichlet energy of an n dimensional membrane Specifically p is the greatest constant such that p G u 2 1 2 G u 2 1 2 displaystyle pi leq frac left int G nabla u 2 right 1 2 left int G u 2 right 1 2 for all convex subsets G of Rn of diameter 1 and square integrable functions u on G of mean zero Just as Wirtinger s inequality is the variational form of the Dirichlet eigenvalue problem in one dimension the Poincare inequality is the variational form of the Neumann eigenvalue problem in any dimension Fourier transform and Heisenberg uncertainty principle An animation of a geodesic in the Heisenberg group The constant p also appears as a critical spectral parameter in the Fourier transform This is the integral transform that takes a complex valued integrable function f on the real line to the function defined as f 3 f x e 2pix3dx displaystyle hat f xi int infty infty f x e 2 pi ix xi dx Although there are several different conventions for the Fourier transform and its inverse any such convention must involve p somewhere The above is the most canonical definition however giving the unique unitary operator on L2 that is also an algebra homomorphism of L1 to L The Heisenberg uncertainty principle also contains the number p The uncertainty principle gives a sharp lower bound on the extent to which it is possible to localize a function both in space and in frequency with our conventions for the Fourier transform x2 f x 2dx 32 f 3 2d3 14p f x 2dx 2 displaystyle left int infty infty x 2 f x 2 dx right left int infty infty xi 2 hat f xi 2 d xi right geq left frac 1 4 pi int infty infty f x 2 dx right 2 The physical consequence about the uncertainty in simultaneous position and momentum observations of a quantum mechanical system is discussed below The appearance of p in the formulae of Fourier analysis is ultimately a consequence of the Stone von Neumann theorem asserting the uniqueness of the Schrodinger representation of the Heisenberg group Gaussian integrals A graph of the Gaussian function ƒ x e x2 The coloured region between the function and the x axis has area p The fields of probability and statistics frequently use the normal distribution as a simple model for complex phenomena for example scientists generally assume that the observational error in most experiments follows a normal distribution The Gaussian function which is the probability density function of the normal distribution with mean m and standard deviation s naturally contains p f x 1s2pe x m 2 2s2 displaystyle f x 1 over sigma sqrt 2 pi e x mu 2 2 sigma 2 The factor of 12p displaystyle tfrac 1 sqrt 2 pi makes the area under the graph of f equal to one as is required for a probability distribution This follows from a change of variables in the Gaussian integral e u2du p displaystyle int infty infty e u 2 du sqrt pi which says that the area under the basic bell curve in the figure is equal to the square root of p The central limit theorem explains the central role of normal distributions and thus of p in probability and statistics This theorem is ultimately connected with the spectral characterization of p as the eigenvalue associated with the Heisenberg uncertainty principle and the fact that equality holds in the uncertainty principle only for the Gaussian function Equivalently p is the unique constant making the Gaussian normal distribution e px2 equal to its own Fourier transform Indeed according to Howe 1980 the whole business of establishing the fundamental theorems of Fourier analysis reduces to the Gaussian integral Topology Uniformization of the Klein quartic a surface of genus three and Euler characteristic 4 as a quotient of the hyperbolic plane by the symmetry group PSL 2 7 of the Fano plane The hyperbolic area of a fundamental domain is 8p by Gauss Bonnet The constant p appears in the Gauss Bonnet formula which relates the differential geometry of surfaces to their topology Specifically if a compact surface S has Gauss curvature K then SKdA 2px S displaystyle int Sigma K dA 2 pi chi Sigma where x S is the Euler characteristic which is an integer An example is the surface area of a sphere S of curvature 1 so that its radius of curvature which coincides with its radius is also 1 The Euler characteristic of a sphere can be computed from its homology groups and is found to be equal to two Thus we have A S S1dA 2p 2 4p displaystyle A S int S 1 dA 2 pi cdot 2 4 pi reproducing the formula for the surface area of a sphere of radius 1 The constant appears in many other integral formulae in topology in particular those involving characteristic classes via the Chern Weil homomorphism Cauchy s integral formula Complex analytic functions can be visualized as a collection of streamlines and equipotentials systems of curves intersecting at right angles Here illustrated is the complex logarithm of the Gamma function One of the key tools in complex analysis is contour integration of a function over a positively oriented rectifiable Jordan curve g A form of Cauchy s integral formula states that if a point z0 is interior to g then gdzz z0 2pi displaystyle oint gamma frac dz z z 0 2 pi i Although the curve g is not a circle and hence does not have any obvious connection to the constant p a standard proof of this result uses Morera s theorem which implies that the integral is invariant under homotopy of the curve so that it can be deformed to a circle and then integrated explicitly in polar coordinates More generally it is true that if a rectifiable closed curve g does not contain z0 then the above integral is 2pi times the winding number of the curve The general form of Cauchy s integral formula establishes the relationship between the values of a complex analytic function f z on the Jordan curve g and the value of f z at any interior point z0 of g gf z z z0dz 2pif z0 displaystyle oint gamma f z over z z 0 dz 2 pi if z 0 provided f z is analytic in the region enclosed by g and extends continuously to g Cauchy s integral formula is a special case of the residue theorem that if g z is a meromorphic function the region enclosed by g and is continuous in a neighbourhood of g then gg z dz 2pi Res g ak displaystyle oint gamma g z dz 2 pi i sum operatorname Res g a k where the sum is of the residues at the poles of g z Vector calculus and physics The constant p is ubiquitous in vector calculus and potential theory for example in Coulomb s law Gauss s law Maxwell s equations and even the Einstein field equations Perhaps the simplest example of this is the two dimensional Newtonian potential representing the potential of a point source at the origin whose associated field has unit outward flux through any smooth and oriented closed surface enclosing the source F x 12plog x displaystyle Phi mathbf x frac 1 2 pi log mathbf x The factor of 1 2p displaystyle 1 2 pi is necessary to ensure that F displaystyle Phi is the fundamental solution of the Poisson equation in R2 displaystyle mathbb R 2 DF d displaystyle Delta Phi delta where d displaystyle delta is the Dirac delta function In higher dimensions factors of p are present because of a normalization by the n dimensional volume of the unit n sphere For example in three dimensions the Newtonian potential is F x 14p x displaystyle Phi mathbf x frac 1 4 pi mathbf x which has the 2 dimensional volume i e the area of the unit 2 sphere in the denominator Total curvature This section is an excerpt from Total curvature edit This curve has total curvature 6p and index turning number 3 though it only has winding number 2 about p In mathematical study of the differential geometry of curves the total curvature of an immersed plane curve is the integral of curvature along a curve taken with respect to arc length abk s ds 2pN displaystyle int a b k s ds 2 pi N The total curvature of a closed curve is always an integer multiple of 2p where N is called the index of the curve or turning number it is the winding number of the unit tangent vector about the origin or equivalently the degree of the map to the unit circle assigning to each point of the curve the unit velocity vector at that point This map is similar to the Gauss map for surfaces The gamma function and Stirling s approximation Plot of the gamma function on the real axis The factorial function n displaystyle n is the product of all of the positive integers through n The gamma function extends the concept of factorial normally defined only for non negative integers to all complex numbers except the negative real integers with the identity G n n 1 displaystyle Gamma n n 1 When the gamma function is evaluated at half integers the result contains p For example G 1 2 p displaystyle Gamma 1 2 sqrt pi and G 5 2 3p4 textstyle Gamma 5 2 frac 3 sqrt pi 4 The gamma function is defined by its Weierstrass product development G z e gzz n 1 ez n1 z n displaystyle Gamma z frac e gamma z z prod n 1 infty frac e z n 1 z n where g is the Euler Mascheroni constant Evaluated at z 1 2 and squared the equation G 1 2 2 p reduces to the Wallis product formula The gamma function is also connected to the Riemann zeta function and identities for the functional determinant in which the constant p plays an important role The gamma function is used to calculate the volume Vn r of the n dimensional ball of radius r in Euclidean n dimensional space and the surface area Sn 1 r of its boundary the n 1 dimensional sphere Vn r pn 2G n2 1 rn displaystyle V n r frac pi n 2 Gamma left frac n 2 1 right r n Sn 1 r npn 2G n2 1 rn 1 displaystyle S n 1 r frac n pi n 2 Gamma left frac n 2 1 right r n 1 Further it follows from the functional equation that 2pr Sn 1 r Vn r displaystyle 2 pi r frac S n 1 r V n r The gamma function can be used to create a simple approximation to the factorial function n for large n n 2pn ne n textstyle n sim sqrt 2 pi n left frac n e right n which is known as Stirling s approximation Equivalently p limn e2nn 22n2n 1 displaystyle pi lim n to infty frac e 2n n 2 2n 2n 1 As a geometrical application of Stirling s approximation let Dn denote the standard simplex in n dimensional Euclidean space and n 1 Dn denote the simplex having all of its sides scaled up by a factor of n 1 Then Vol n 1 Dn n 1 nn en 12pn displaystyle operatorname Vol n 1 Delta n frac n 1 n n sim frac e n 1 sqrt 2 pi n Ehrhart s volume conjecture is that this is the optimal upper bound on the volume of a convex body containing only one lattice point Number theory and Riemann zeta function Each prime has an associated Prufer group which are arithmetic localizations of the circle The L functions of analytic number theory are also localized in each prime p Solution of the Basel problem using the Weil conjecture the value of z 2 is the hyperbolic area of a fundamental domain of the modular group times p 2 The Riemann zeta function z s is used in many areas of mathematics When evaluated at s 2 it can be written as z 2 112 122 132 displaystyle zeta 2 frac 1 1 2 frac 1 2 2 frac 1 3 2 cdots Finding a simple solution for this infinite series was a famous problem in mathematics called the Basel problem Leonhard Euler solved it in 1735 when he showed it was equal to p2 6 Euler s result leads to the number theory result that the probability of two random numbers being relatively prime that is having no shared factors is equal to 6 p2 This probability is based on the observation that the probability that any number is divisible by a prime p is 1 p for example every 7th integer is divisible by 7 Hence the probability that two numbers are both divisible by this prime is 1 p2 and the probability that at least one of them is not is 1 1 p2 For distinct primes these divisibility events are mutually independent so the probability that two numbers are relatively prime is given by a product over all primes p 1 1p2 p 11 p 2 1 11 122 132 1z 2 6p2 61 displaystyle begin aligned prod p infty left 1 frac 1 p 2 right amp left prod p infty frac 1 1 p 2 right 1 4pt amp frac 1 1 frac 1 2 2 frac 1 3 2 cdots 4pt amp frac 1 zeta 2 frac 6 pi 2 approx 61 end aligned This probability can be used in conjunction with a random number generator to approximate p using a Monte Carlo approach The solution to the Basel problem implies that the geometrically derived quantity p is connected in a deep way to the distribution of prime numbers This is a special case of Weil s conjecture on Tamagawa numbers which asserts the equality of similar such infinite products of arithmetic quantities localized at each prime p and a geometrical quantity the reciprocal of the volume of a certain locally symmetric space In the case of the Basel problem it is the hyperbolic 3 manifold SL2 R SL2 Z The zeta function also satisfies Riemann s functional equation which involves p as well as the gamma function z s 2sps 1 sin ps2 G 1 s z 1 s displaystyle zeta s 2 s pi s 1 sin left frac pi s 2 right Gamma 1 s zeta 1 s Furthermore the derivative of the zeta function satisfies exp z 0 2p displaystyle exp zeta 0 sqrt 2 pi A consequence is that p can be obtained from the functional determinant of the harmonic oscillator This functional determinant can be computed via a product expansion and is equivalent to the Wallis product formula The calculation can be recast in quantum mechanics specifically the variational approach to the spectrum of the hydrogen atom Fourier series p appears in characters of p adic numbers shown which are elements of a Prufer group Tate s thesis makes heavy use of this machinery The constant p also appears naturally in Fourier series of periodic functions Periodic functions are functions on the group T R Z of fractional parts of real numbers The Fourier decomposition shows that a complex valued function f on T can be written as an infinite linear superposition of unitary characters of T That is continuous group homomorphisms from T to the circle group U 1 of unit modulus complex numbers It is a theorem that every character of T is one of the complex exponentials en x e2pinx displaystyle e n x e 2 pi inx There is a unique character on T up to complex conjugation that is a group isomorphism Using the Haar measure on the circle group the constant p is half the magnitude of the Radon Nikodym derivative of this character The other characters have derivatives whose magnitudes are positive integral multiples of 2p As a result the constant p is the unique number such that the group T equipped with its Haar measure is Pontrjagin dual to the lattice of integral multiples of 2p This is a version of the one dimensional Poisson summation formula Modular forms and theta functions Theta functions transform under the lattice of periods of an elliptic curve The constant p is connected in a deep way with the theory of modular forms and theta functions For example the Chudnovsky algorithm involves in an essential way the j invariant of an elliptic curve Modular forms are holomorphic functions in the upper half plane characterized by their transformation properties under the modular group SL2 Z displaystyle mathrm SL 2 mathbb Z or its various subgroups a lattice in the group SL2 R displaystyle mathrm SL 2 mathbb R An example is the Jacobi theta function 8 z t n e2pinz pin2t displaystyle theta z tau sum n infty infty e 2 pi inz pi in 2 tau which is a kind of modular form called a Jacobi form This is sometimes written in terms of the nome q epit displaystyle q e pi i tau The constant p is the unique constant making the Jacobi theta function an automorphic form which means that it transforms in a specific way Certain identities hold for all automorphic forms An example is 8 z t t e pit 2piz8 z t displaystyle theta z tau tau e pi i tau 2 pi iz theta z tau which implies that 8 transforms as a representation under the discrete Heisenberg group General modular forms and other theta functions also involve p once again because of the Stone von Neumann theorem Cauchy distribution and potential theory The Witch of Agnesi named for Maria Agnesi 1718 1799 is a geometrical construction of the graph of the Cauchy distribution The Cauchy distribution governs the passage of Brownian particles through a membrane The Cauchy distribution g x 1p 1x2 1 displaystyle g x frac 1 pi cdot frac 1 x 2 1 is a probability density function The total probability is equal to one owing to the integral 1x2 1dx p displaystyle int infty infty frac 1 x 2 1 dx pi The Shannon entropy of the Cauchy distribution is equal to ln 4p which also involves p The Cauchy distribution plays an important role in potential theory because it is the simplest Furstenberg measure the classical Poisson kernel associated with a Brownian motion in a half plane Conjugate harmonic functions and so also the Hilbert transform are associated with the asymptotics of the Poisson kernel The Hilbert transform H is the integral transform given by the Cauchy principal value of the singular integral Hf t 1p f x dxx t displaystyle Hf t frac 1 pi int infty infty frac f x dx x t The constant p is the unique positive normalizing factor such that H defines a linear complex structure on the Hilbert space of square integrable real valued functions on the real line The Hilbert transform like the Fourier transform can be characterized purely in terms of its transformation properties on the Hilbert space L2 R up to a normalization factor it is the unique bounded linear operator that commutes with positive dilations and anti commutes with all reflections of the real line The constant p is the unique normalizing factor that makes this transformation unitary In the Mandelbrot set The Mandelbrot set can be used to approximate p An occurrence of p in the fractal called the Mandelbrot set was discovered by David Boll in 1991 He examined the behaviour of the Mandelbrot set near the neck at 0 75 0 When the number of iterations until divergence for the point 0 75 e is multiplied by e the result approaches p as e approaches zero The point 0 25 e 0 at the cusp of the large valley on the right side of the Mandelbrot set behaves similarly the number of iterations until divergence multiplied by the square root of e tends to p Projective geometry Let V be the set of all twice differentiable real functions f R R displaystyle f mathbb R to mathbb R that satisfy the ordinary differential equation f x f x 0 displaystyle f x f x 0 Then V is a two dimensional real vector space with two parameters corresponding to a pair of initial conditions for the differential equation For any t R displaystyle t in mathbb R let et V R displaystyle e t V to mathbb R be the evaluation functional which associates to each f V displaystyle f in V the value et f f t displaystyle e t f f t of the function f at the real point t Then for each t the kernel of et displaystyle e t is a one dimensional linear subspace of V Hence t ker et displaystyle t mapsto ker e t defines a function from R P V displaystyle mathbb R to mathbb P V from the real line to the real projective line This function is periodic and the quantity p can be characterized as the period of this map This is notable in that the constant p rather than 2p appears naturally in this context Outside mathematicsDescribing physical phenomena Although not a physical constant p appears routinely in equations describing fundamental principles of the universe often because of p s relationship to the circle and to spherical coordinate systems A simple formula from the field of classical mechanics gives the approximate period T of a simple pendulum of length L swinging with a small amplitude g is the earth s gravitational acceleration T 2pLg displaystyle T approx 2 pi sqrt frac L g One of the key formulae of quantum mechanics is Heisenberg s uncertainty principle which shows that the uncertainty in the measurement of a particle s position Dx and momentum Dp cannot both be arbitrarily small at the same time where h is the Planck constant DxDp h4p displaystyle Delta x Delta p geq frac h 4 pi The fact that p is approximately equal to 3 plays a role in the relatively long lifetime of orthopositronium The inverse lifetime to lowest order in the fine structure constant a is1t 2p2 99pmea6 displaystyle frac 1 tau 2 frac pi 2 9 9 pi m text e alpha 6 where me is the mass of the electron p is present in some structural engineering formulae such as the buckling formula derived by Euler which gives the maximum axial load F that a long slender column of length L modulus of elasticity E and area moment of inertia I can carry without buckling F p2EIL2 displaystyle F frac pi 2 EI L 2 The field of fluid dynamics contains p in Stokes law which approximates the frictional force F exerted on small spherical objects of radius R moving with velocity v in a fluid with dynamic viscosity h F 6phRv displaystyle F 6 pi eta Rv In electromagnetics the vacuum permeability constant m0 appears in Maxwell s equations which describe the properties of electric and magnetic fields and electromagnetic radiation Before 20 May 2019 it was defined as exactly m0 4p 10 7 H m 1 2566370614 10 6 N A2 displaystyle mu 0 4 pi times 10 7 text H m approx 1 2566370614 ldots times 10 6 text N A 2 Memorizing digits Piphilology is the practice of memorizing large numbers of digits of p and world records are kept by the Guinness World Records The record for memorizing digits of p certified by Guinness World Records is 70 000 digits recited in India by Rajveer Meena in 9 hours and 27 minutes on 21 March 2015 In 2006 Akira Haraguchi a retired Japanese engineer claimed to have recited 100 000 decimal places but the claim was not verified by Guinness World Records One common technique is to memorize a story or poem in which the word lengths represent the digits of p The first word has three letters the second word has one the third has four the fourth has one the fifth has five and so on Such memorization aids are called mnemonics An early example of a mnemonic for pi originally devised by English scientist James Jeans is How I want a drink alcoholic of course after the heavy lectures involving quantum mechanics When a poem is used it is sometimes referred to as a piem Poems for memorizing p have been composed in several languages in addition to English Record setting p memorizers typically do not rely on poems but instead use methods such as remembering number patterns and the method of loci A few authors have used the digits of p to establish a new form of constrained writing where the word lengths are required to represent the digits of p The Cadaeic Cadenza contains the first 3835 digits of p in this manner and the full length book Not a Wake contains 10 000 words each representing one digit of p In popular culture A pi pie Many pies are circular and pie and p are homophones making pie a frequent subject of pi puns Perhaps because of the simplicity of its definition and its ubiquitous presence in formulae p has been represented in popular culture more than other mathematical constructs In the Palais de la Decouverte a science museum in Paris there is a circular room known as the pi room On its wall are inscribed 707 digits of p The digits are large wooden characters attached to the dome like ceiling The digits were based on an 1873 calculation by English mathematician William Shanks which included an error beginning at the 528th digit The error was detected in 1946 and corrected in 1949 In Carl Sagan s 1985 novel Contact it is suggested that the creator of the universe buried a message deep within the digits of p This part of the story was omitted from the film adaptation of the novel The digits of p have also been incorporated into the lyrics of the song Pi from the 2005 album Aerial by Kate Bush In the 1967 Star Trek episode Wolf in the Fold an out of control computer is contained by being instructed to Compute to the last digit the value of p In the United States Pi Day falls on 14 March written 3 14 in the US style and is popular among students p and its digital representation are often used by self described math geeks for inside jokes among mathematically and technologically minded groups A college cheer variously attributed to the Massachusetts Institute of Technology or the Rensselaer Polytechnic Institute includes 3 14159 Pi Day in 2015 was particularly significant because the date and time 3 14 15 9 26 53 reflected many more digits of pi In parts of the world where dates are commonly noted in day month year format 22 July represents Pi Approximation Day as 22 7 3 142857 Some have proposed replacing p by t 2p arguing that t as the number of radians in one turn or the ratio of a circle s circumference to its radius is more natural than p and simplifies many formulae This use of t has not made its way into mainstream mathematics but since 2010 this has led to people celebrating Two Pi Day or Tau Day on June 28 In 1897 an amateur mathematician attempted to persuade the Indiana legislature to pass the Indiana Pi Bill which described a method to square the circle and contained text that implied various incorrect values for p including 3 2 The bill is notorious as an attempt to establish a value of mathematical constant by legislative fiat The bill was passed by the Indiana House of Representatives but rejected by the Senate and thus it did not become a law In contemporary internet culture individuals and organizations frequently pay homage to the number p For instance the computer scientist Donald Knuth let the version numbers of his program TeX approach p The versions are 3 3 1 3 14 and so forth See alsoApproximations of p Chronology of computation of p List of mathematical constantsReferencesExplanatory notes In particular p is conjectured to be a normal number which implies a specific kind of statistical randomness on its digits in all bases The specific integral that Weierstrass used wasp dx1 x2 displaystyle pi int infty infty frac dx 1 x 2 The polynomial shown is the first few terms of the Taylor series expansion of the sine function Citations Andrews Askey amp Roy 1999 p 59 Gupta R C 1992 On the remainder term in the Madhava Leibniz s series Ganita Bharati 14 1 4 68 71 Jones William 1706 Synopsis Palmariorum Matheseos London J Wale pp 243 263 p 263 There are various other ways of finding the Lengths or Areas of particular Curve Lines or Planes which may very much facilitate the Practice as for instance in the Circle the Diameter is to Circumference as 1 to 165 4239 131653 42393 151655 42395 amp c displaystyle overline tfrac 16 5 tfrac 4 239 tfrac 1 3 overline tfrac 16 5 3 tfrac 4 239 3 tfrac 1 5 overline tfrac 16 5 5 tfrac 4 239 5 amp c 3 14159 amp c p This Series among others for the same purpose and drawn from the same Principle I receiv d from the Excellent Analyst and my much Esteem d Friend Mr John Machin and by means thereof Van Ceulen s Number or that in Art 64 38 may be Examin d with all desireable Ease and Dispatch Reprinted in Smith David Eugene 1929 William Jones The First Use of p for the Circle Ratio A Source Book in Mathematics McGraw Hill pp 346 347 pe trillion digits of p pi2e ch Archived from the original on 6 December 2016 Haruka Iwao Emma 14 March 2019 Pi in the sky Calculating a record breaking 31 4 trillion digits of Archimedes constant on Google Cloud Google Cloud Platform Archived from the original on 19 October 2019 Retrieved 12 April 2019 Arndt amp Haenel 2006 p 17 Bailey David H Plouffe Simon M Borwein Peter B Borwein Jonathan M 1997 The quest for PI The Mathematical Intelligencer 19 1 50 56 CiteSeerX 10 1 1 138 7085 doi 10 1007 BF03024340 ISSN 0343 6993 S2CID 14318695 Oughtred William 1652 Theorematum in libris Archimedis de sphaera et cylindro declarario in Latin Excudebat L Lichfield Veneunt apud T Robinson d p semidiameter semiperipheria pi Dictionary reference com 2 March 1993 Archived from the original on 28 July 2014 Retrieved 18 June 2012 Arndt amp Haenel 2006 p 8 Apostol Tom 1967 Calculus Vol 1 2nd ed Wiley p 102 From a logical point of view this is unsatisfactory at the present stage because we have not yet discussed the concept of arc length Remmert 2012 p 129 Remmert 2012 p 148 Weierstrass Karl 1841 Darstellung einer analytischen Function einer complexen Veranderlichen deren absoluter Betrag zwischen zwei gegebenen Grenzen liegt Representation of an analytical function of a complex variable whose absolute value lies between two given limits Mathematische Werke in German Vol 1 Berlin Mayer amp Muller published 1894 pp 51 66 Baltzer Richard 1870 Die Elemente der Mathematik The Elements of Mathematics in German Hirzel p 195 Archived from the original on 14 September 2016 Landau Edmund 1934 Einfuhrung in die Differentialrechnung und Integralrechnung in German Noordoff p 193 Rudin Walter 1976 Principles of Mathematical Analysis McGraw Hill p 183 ISBN 978 0 07 054235 8 Rudin Walter 1986 Real and complex analysis McGraw Hill p 2 Ahlfors Lars 1966 Complex analysis McGraw Hill p 46

rec-icon Recommended Topics
Share this article
Read the free encyclopedia and learn everything...
See more
Read the free encyclopedia. All information in Wikipedia is available. No payment required.
Share this article on
Share
XXX 0C
Wednesday, 12 March, 2025
Follow Us On