Numerical integration: Difference between revisions

Content added Content deleted
m (Added wp links)
m (Already have a link for this)
Line 13: Line 13:
answer = (h / 6) * (f(a) + f(b) + 4 * sum1 + 2 * sum2)
answer = (h / 6) * (f(a) + f(b) + 4 * sum1 + 2 * sum2)
What it will be doing is computing integrals for multiple quadratics (like [http://en.wikipedia.org/wiki/Simpsons_rule the one shown in Wikipedia]) and summing them.
What it will be doing is computing integrals for multiple quadratics (like the one shown in Wikipedia) and summing them.


=={{header|Ada}}==
=={{header|Ada}}==