Numerical integration/Adaptive Simpson's method: Difference between revisions
Numerical integration/Adaptive Simpson's method (view source)
Revision as of 14:08, 17 May 2023
, 1 year ago→{{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) (+
(%%quad-asr
(lambda (a fa b fb tol whole m fm depth)
|