Category:Pi with Machin's formula
From LiteratePrograms
[edit]
Machin's formula
A simple way to compute the mathematical constant π ≈ 3.14159 with any desired precision is due to John Machin. In 1706, he found the formula
which he used along with the Taylor series expansion of the arc cotangent function,
to calculate 100 decimals by hand. The formula is well suited for computer implementation, both to compute π with little coding effort (adding up the series term by term) and using more advanced strategies (such as binary splitting) for better speed.