fem1d_lagrange


fem1d_lagrange, a Python code which sets up the matrices and vectors associated with the finite element method (FEM) solution of a boundary value problem (BVP) -u''+u=f(x), using Lagrange basis polynomials.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

fem1d_lagrange is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Programs:

fem1d, a Python code which applies the finite element method (FEM) to a 1D linear two point boundary value problem (BVP).

lagrange_interp_1d, a Python code which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i).

Source Code:


Last revised on 03 April 2026.