**approx_leastsquares_test**,
a MATLAB code which
calls approx_leastsquares(), which
interactively approximates a function f(x) in the interval [a,b]
by constructing an m-degree polynomial that minimizes the
l2 norm of the error at n data points.

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

approx_leastsquares, interactively approximate a function f(x) in the interval [a,b] by constructing an m-degree polynomial that minimizes the l2 norm of the error at n data points.

- approx_leastsquares_test.m the source code.
- approx_leastsquares_test.sh runs all the tests.
- approx_leastsquares_test.txt the output file.

- humps_fun.m an example function to be interpolated.
- humps_leastsquares.png a plot comparing the function and its interpolant.