Machin's Computation of Pi

Around 1706, John Machin found the arc tangent formula .
He expanded it using Gregory's series to compute to over 100 digits. The convergence of this series is much more rapid than that for the simple Gregory–Leibniz series: .
Let and be the series for and . Manchin's formula is then .
Split and into four series according to the signs of their coefficients:
Machin used values truncated to 103 decimals, which means that only terms greater than are calculated.
To make sure that all terms of and with indices are less than , it is necessary that . For , this means .


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Let , be an arc of radius 1, and be perpendicular to , , , and . Construct points and on the arc , and and on the straight line , so that and .
Then and , .
So , .
See [1, pp. 8–9].
[1] V. F. Rickey. "Machin's Formula for Computing Pi." (Apr 28, 2016) fredrickey.info/talks/10-03-13-HPM-DC-Machin/10-03-13-HPM_DC_Machin.pdf.
[2] MacTutor. "John Machin." (Apr 28, 2016) www-history.mcs.st-andrews.ac.uk/Biographies/Machin.html.
[3] Wikipedia. "John Machin." (Apr 28, 2016) en.wikipedia.org/wiki/John_Machin.
[4] W. W. Rouse Ball, H. S. M. Coxeter, Mathematical Recreations and Essays, 13th ed., New York: Dover Publications, 1987 p. 356.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+