Jump to content

Numerical integration: Difference between revisions

m
used a blank to not split the pseudocode paragraph into two parts.
m (aligned columns as originally intended.)
m (used a blank to not split the pseudocode paragraph into two parts.)
Line 27:
sum1 := sum1 + f(a + h * i + h/2)
sum2 := sum2 + f(a + h * i)
 
 
''answer'' := (h / 6) * (f(a) + f(b) + 4*sum1 + 2*sum2)
|}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.