Gauss quadrature explanation for error term computing