Check Machin-like formulas: Difference between revisions

→‎{{header|Python}}: Corrected spelling
(→‎{{header|Python}}: Corrected spelling)
Line 1,833:
=={{header|Python}}==
This example parses the [http://rosettacode.org/mw/index.php?title=Check_Machin-like_formulas&oldid=146749 original] equations to form an intermediate representation then does the checks.<br>
Function tans and tanEval are translations of the HaskelHaskell functions of the same names.
<lang python>import re
from fractions import Fraction
9,655

edits