Numerical integration/Adaptive Simpson's method: Difference between revisions
Numerical integration/Adaptive Simpson's method (view source)
Revision as of 14:06, 17 May 2023
, 1 year agoThe 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) * (
'''procedure''' _quad_asr(f, a, fa, b, fb, tol, whole, m, fm, depth)
|