Primes

Ordinary Differential Equations

Newton-Cotes formulae for area under a curve in C

Each method integrates the curve f(x) = 5x^3 – 12x^2 + 7x – 3, and the integration is carried out from x = 2 to x = 6.  The analytic answer is area = 868.00.  The eight methods represented here are the eight Newton-Cotes formulae – four open and four closed.

Various