Pathological floating point problems: Difference between revisions
Content added Content deleted
m (→A sequence that seems to converge to a wrong limit: moved some comments around.) |
m (→Siegfried Rump's example: made the (visible) expressions for the formula in the F function to appear closer to the task's version. .) |
||
Line 2,281: | Line 2,281: | ||
exit /*stick a fork in it, we're all done. */ |
exit /*stick a fork in it, we're all done. */ |
||
/*──────────────────────────────────────────────────────────────────────────────────────*/ |
/*──────────────────────────────────────────────────────────────────────────────────────*/ |
||
f: |
f: procedure; parse arg a,b; return 333.75* b**6 + a**2 * (11* a**2* b**2 - b**6, |
||
- 121*b**4 - 2) + 5.5*b**8 + a / (2*b)</lang> |
|||
{{out|output|text= when using the default inputs:}} |
{{out|output|text= when using the default inputs:}} |
||
<pre> |
<pre> |