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

m
→‎{{header|Scheme}}: Do not recompute fa and fb
(The pseudocode was misleading people into recomputing values already computed.)
m (→‎{{header|Scheme}}: Do not recompute fa and fb)
Line 1,300:
;; once. There is no need to return them explicitly as
;; a data structure (though that also could be done).
(values m fm (* (/ h 6) (+ (f a)fa (* 4 fm) (f b)fb))))))
(%%quad-asr
(lambda (a fa b fb tol whole m fm depth)
1,448

edits