quadrature function

computes the approximated Integral