Open ivan-pi opened 2 years ago
My program shows that it seems with the same absErr and relErr, the Matlab version gives around twice less function evaluations than one from Quadpack. I think that comes from the difference in error estimation (somehow mentioned in Shampine paper).
It would be nice to add the MATLAB algorithm, which is described in
I believe the algorithm is similar to those in QUADPACK, but with a few small differences in how the error estimate is constructed.
For simplicity it offers a unified interface for both proper and improper integrals.
See also
integral
Numerical integrationquadgk
Numerically evaluate integral — Gauss-Kronrod quadrature