Numerical integration: Difference between revisions
Content added Content deleted
Artoria2e5 (talk | contribs) mNo edit summary |
Artoria2e5 (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
|- |
|- |
||
| |
| |
||
'''procedure''' quad_simpson_composite(a, b, n) |
'''procedure''' quad_simpson_composite(f, a, b, n) |
||
h := (b - a) / n |
h := (b - a) / n |
||
sum1 := f(a + h/2) |
sum1 := f(a + h/2) |