**fem1d_approximate_test**,
a MATLAB code which
calls fem1d_approximate(), which
uses a given finite element mesh and piecewise linear basis functions
to approximate a set of data points,
while controlling the variation in the derivative.

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

fem1d_approximate, a MATLAB code which uses a given finite element mesh and piecewise linear basis functions to approximate a set of data points, while controlling the variation in the derivative.

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

- data_pairs.txt, sample data to approximate.
- mesh11.txt, 11 nodes of a finite element mesh.
- mesh21.txt, 21 nodes of a finite element mesh.
- plot1.png, the FEM approximation on mesh21 when the smooth derivative weight is 0.
- plot2.png, the FEM approximation on mesh21 when the smooth derivative weight is 0.01.