Quadrature Rules Comparison

Description

This is just an animation of demonstrating calculation of definite integral using three quadrature rules over the function:

f ( x ) = 1 20 x 2 + s i n ( x )

The approximation of definite integral is done by the browser, using bignumber.js library. After the animation completes, the browser begins to calculate the area under the curve, using Midpoint, Trapezoid, Simpson's Rule and knowing the Indefinite Integral to get the exact area, to compare the results.