fem1d_sample_test


fem1d_sample_test, a C code which calls fem1d_sample() to evaluate a finite element function of one argument.

Licensing:

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

Related Data and Programs:

fem1d_sample, a C code which samples a scalar or vector finite element function of one variable, defined by FEM files, returning interpolated values at the sample points.

Source Code:

P1 is FEM data for the vector function f(x)=[ 1, x, x^2], on a grid of 11 evenly spaced nodes from -5 to 5, using piecewise constant basis functions.

P2 is FEM data for the vector function f(x)=[ 1, x, x^2], on a grid of 11 evenly spaced nodes from -5 to 5, using piecewise linear basis functions.


Last revised on 25 June 2019.