Numerical integration/Adaptive Simpson's method: Difference between revisions
Numerical integration/Adaptive Simpson's method (view source)
Revision as of 23:55, 26 May 2023
, 11 months ago→{{header|COBOL}}: Make abs-delta unsigned so we don't have to explicitely test the sign of delta
(→{{header|COBOL}}: Restore blurb accidently deleted) |
(→{{header|COBOL}}: Make abs-delta unsigned so we don't have to explicitely test the sign of delta) |
||
Line 727:
01 ruleval1 picture s9(5)V9(20).
01 delta picture s9(5)V9(20).
01 abs-delta picture
01 tol0 picture s9(5)V9(20).
01 tol1 picture s9(5)V9(20).
Line 751:
perform simpson-rule-thrice
compute delta = ruleval0 + ruleval1 - ruleval
compute tol0 = tol * (x4 - x0)
compute tol1 = tol * (x2 - x0)
|