**quadrature_least_squares_test**,
a MATLAB code which
calls quadrature_least_squares(), which
computes weights for sub-interpolatory quadrature rules.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

quadrature_least_squares, a MATLAB code which computes weights for "sub-interpolatory" quadrature rules, that is, it estimates integrals by integrating a polynomial that approximates the function data in a least squares sense.

- quadrature_least_squares_test.m, calls all the tests;
- quadrature_least_squares_test.sh, runs all the tests;
- quadrature_least_squares_test.txt, the output file;

- quadrature_least_squares_test01.m, uses weight_ls() to compute quadrature rules that are comparable to Newton-Cotes rules on [-1,+1].
- quadrature_least_squares_test02.m, compares Monte Carlo and least squares estimates for the Runge function in [-5,+5].