Numerical integration/Adaptive Simpson's method: Difference between revisions
Numerical integration/Adaptive Simpson's method (view source)
Revision as of 22:30, 22 May 2023
, 1 year ago→{{header|COBOL}}: Restore blurb accidently deleted
(→{{header|COBOL}}: Use signed arithmetic throughout which doesn't affect the result of this sample but could affect the results of other integrations.) |
(→{{header|COBOL}}: Restore blurb accidently deleted) |
||
Line 690:
=={{header|COBOL}}==
{{works with|GnuCOBOL|3.1.2.0}}
Rather than do recursions, I compute the x-intervals iteratively. No attempt is made to avoid recomputing values of sin(x).
<syntaxhighlight lang="cobol">
|