Jump to content

Numerical integration/Adaptive Simpson's method: Difference between revisions

→‎{{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">
3,044

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.