In 1706, William Jones published a contribution from John Machin of the first 100 decimal digits of the circle constant π = 3.14159..., at that time a record for accuracy, along with the unexplained and surprising formula used to calculate them,
π = ( 16 5 − 4 239 ) − 1 3 ( 16 5 3 − 4 239 3 ) + 1 5 ( 16 5 5 − 4 239 5 ) − ⋯ . {\displaystyle \pi =\left({\frac {16}{5}}-{\frac {4}{239}}\right)-{\frac {1}{3}}\left({\frac {16}{5^{3}}}-{\frac {4}{239^{3}}}\right)+{\frac {1}{5}}\left({\frac {16}{5^{5}}}-{\frac {4}{239^{5}}}\right)-\cdots .}
This formula is an expanded form of the equation now called Machin's formula,
π 4 = 4 arctan 1 5 − arctan 1 239 , {\displaystyle {\frac {\pi }{4}}=4\arctan {\frac {1}{5}}-\arctan {\frac {1}{239}},}
where the arctangents of 1 5 {\displaystyle {\tfrac {1}{5}}} and 1 239 {\displaystyle {\tfrac {1}{239}}} have been expanded using the arctangent series,
arctan x = x − x 3 3 + x 5 5 − x 7 7 + ⋯ . {\displaystyle \arctan x=x-{\frac {x^{3}}{3}}+{\frac {x^{5}}{5}}-{\frac {x^{7}}{7}}+\cdots .}
When applied directly to find 1 4 π = arctan 1 {\displaystyle {\tfrac {1}{4}}\pi =\arctan 1} , the arctangent series converges extremely slowly, requiring five billion terms to obtain 10 correct decimal digits. Machin's formula is dramatically more practical, needing only six terms to obtain 10 correct digits. Several other well-known mathematicians immediately set to work making sense of Machin's formula, developing their own variants and extensions, now in general called Machin-like formulas. These have the form
where c 0 {\displaystyle c_{0}} is a positive integer, c n {\displaystyle c_{n}} are signed non-zero integers, and a n {\displaystyle a_{n}} and b n {\displaystyle b_{n}} are positive integers such that a n < b n {\displaystyle a_{n}<b_{n}} .
Derivation The angle addition formula for arctangent asserts that
if
− π 2 < arctan a 1 b 1 + arctan a 2 b 2 < π 2 . {\displaystyle -{\frac {\pi }{2}}<\arctan {\frac {a_{1}}{b_{1}}}+\arctan {\frac {a_{2}}{b_{2}}}<{\frac {\pi }{2}}.}
All of the Machin-like formulas can be derived by repeated application of equation 3. As an example, we show the derivation of Machin's original formula. One has:
… excerpt ends here. Continue reading the full article.

