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

The pseudocode was misleading people into recomputing values already computed.
(→‎{{header|ATS}}: There was needless recomputation of f. That is fixed now. Also more passing around of f than was necessary; also fixed.)
(The pseudocode was misleading people into recomputing values already computed.)
Line 15:
fm := f(m)
h := b - a
'''return multiple''' [m, fm, (h / 6) * (f(a)fa + 4*fm + f(b)fb)]
'''procedure''' _quad_asr(f, a, fa, b, fb, tol, whole, m, fm, depth)
1,448

edits