π/4 = 4 arctan(1/5) − arctan(1/239). Multiply by four and the first link prints 3.1415926535898, which is the same string the fourth link prints for π itself; the two screens agree to fourteen digits, which is as much as the display holds. The pieces are the second and third links: 4 arctan(1/5) is 0.78958223939952, arctan(1/239) is 0.0041840760020747, and their difference is 0.78539816339745 — arctan(1), a quarter of a turn. The links carry an angle unit in the address because the formula is a statement about radians: the same expression with the machine in degrees prints 45.
Why 5 and 239? Because the arctangent series arctan x = x − x³/3 + x⁵/5 − ⋯ drops an error the size of its first neglected term, so its usefulness is decided by how fast x^(2k+1) shrinks. At x = 1 that is the Leibniz series for π/4, which buys less than a third of a correct digit per term and needs on the order of a hundred billion terms to pin eleven decimal places. At x = 1/5 each term is a twenty-fifth of the one before, so twenty terms are worth close to thirty digits; at x = 1/239 each term shrinks by 239² and one term is worth about 4.8 digits, so three suffice for the fourteen the screen shows. The identity itself is two doublings of an angle: if tan θ = 1/5, then tan 2θ = 5/12 and tan 4θ = 120/119, which is a little larger than one — so 4θ overshoots a quarter-turn by exactly arctan(1/239), and rearranging that overshoot is Machin's formula. Variants of the same trick, with more arctangents and smaller arguments, ran the computation of π for two centuries, and the last record set by hand, Shank's 707 digits of 1873, used one and was wrong after the fiftieth digit.
Answer
3.1415926535898
How to read it
The formula's left-hand side, in radians. The second and third links are its two pieces and the fourth is π typed in, which prints identically.
Source
John Machin, 1706, who combined two arctangent series to publish π to 100 digits; the identity is a case of arctan addition, and Machin-type variants held the record until the ENIAC calculation of 1949 used one to reach 2037 digits
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.