Check Machin-like formulas: Difference between revisions

m
→‎{{header|J}}: Fix typo in notes
No edit summary
m (→‎{{header|J}}: Fix typo in notes)
Line 269:
   machin counterExample
0</lang>
'''Notes''': The function <tt>machin</tt> compares the results of each formula to π/4 (expressed as <tt>1r4p1</tt> in J's numeric notation). The first example above shows the results of these comparisons for each formula (with 1 for true and 0 for false). In J, arctan is expressed as <tt>3_3 o. ''values''</tt> and the function <tt>x:</tt> coerces values to extended precision; thereafter J will maintain extended precision throughout its calculations, as long as it can.
 
 
=={{header|Mathematica}}==
Anonymous user