Legende-Gauss-Lobatto nodes and weights
Updated 20 Apr 2004
This script computes the nodes and weights for Legendre-Gauss-Lobatto quadrature as well as the LGL-vandermonde matrix for spectral methods. The nodes are the zeros of (1-x^2)*P_N(x), which include the endpoints. For pure Gauss quadrature, Chebyshev is numerically better and has a lower Lebesgue constant then Legendre, however, the opposite is true for Gauss-Lobatto quadrature.
Greg von Winckel (2023). Legende-Gauss-Lobatto nodes and weights (https://www.mathworks.com/matlabcentral/fileexchange/4775-legende-gauss-lobatto-nodes-and-weights), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Legendre-Pade Approximation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.