There are a number of numerical integration methods. This interact explores several, including Gaussian Quadrature.
-jasongrout on 26 Jun 2012