English

A simple MATLAB program to compute differentiation matrices for arbitrary meshes via Lagrangian interpolation

Numerical Analysis 2019-10-30 v1 Numerical Analysis

Abstract

A MATLAB program for computing differentiation matrices for arbitrary one-dimensional meshes is presented in this manuscript. The differentiation matrices for a mesh of N arbitrarily spaced points are formed from those obtained using Lagrangian interpolation on stencils of a fixed but arbitrary number M<=N of contiguous mesh points. For the particular case M=N and meshes with Chebyshev or Legendre distributions of points, the program yields the well known spectral differentiation matrices. For M<N and M odd, the differentiation matrices coincide, for the special case of an evenly spaced mesh, with those obtained by central finite differences.

Cite

@article{arxiv.1910.13256,
  title  = {A simple MATLAB program to compute differentiation matrices for arbitrary meshes via Lagrangian interpolation},
  author = {Miguel Pérez-Saborid},
  journal= {arXiv preprint arXiv:1910.13256},
  year   = {2019}
}
R2 v1 2026-06-23T11:58:20.030Z