Returns the approximation of the area under a curve.