ArticleslgStudy

computer science

Machin-like formula

Machin-like formula is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Machin-like formula rather than just read about it. In short: 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…

Machin-like formula — main illustration
Machin-like formula — illustration

Key takeaways

  • Machin-like formula belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Machin-like formula to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Machin-like formula from memory before moving on to harder problems.

Reference excerpt

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.

Worked examples

Example 1 — a first encounter with Machin-like formula

Start with the simplest possible case. Write down what Machin-like formula claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Machin-like formula before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Machin-like formula ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Machin-like formula

In research
Machin-like formula appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Machin-like formula in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Machin-like formula is common in secondary-school and first-year university syllabi. It links to neighbouring topics Pi algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Machin-like formula outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Machin-like formula” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Machin-like formula in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Machin-like formula means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Machin-like formula out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Machin-like formula in simple terms?

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…

Why does Machin-like formula matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Machin-like formula?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Machin-like formula.

Tags

  • Pi algorithms

Keep exploring