Concept

basically

stability upper bound

Implementation

Newton-Cotes Quadrature use uniformly spaced nodes, Gaussian Quadrature use optimal picked nodes