LEGENDRE_POLYNOMIAL, a MATLAB library which evaluates the Legendre polynomial and associated functions.
The Legendre polynomial P(n,x) can be defined by:
P(0,x) = 1 P(1,x) = x P(n,x) = (2*n-1)/n * x * P(n-1,x) - (n-1)/n * P(n-2,x)where n is a nonnegative integer.
The N zeroes of P(n,x) are the abscissas used for Gauss-Legendre quadrature of the integral of a function F(X) with weight function 1 over the interval [-1,1].
The Legendre polynomials are orthogonal under the inner product defined as integration from -1 to 1:
Integral ( -1 <= x <= 1 ) P(i,x) * P(j,x) dx = 0 if i =/= j = 2 / ( 2*i+1 ) if i = j.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
LEGENDRE_POLYNOMIAL is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.
BERNSTEIN_POLYNOMIAL, a MATLAB library which evaluates the Bernstein polynomials, useful for uniform approximation of functions;
CHEBYSHEV_POLYNOMIAL, a MATLAB library which considers the Chebyshev polynomials T(i,x), U(i,x), V(i,x) and W(i,x). Functions are provided to evaluate the polynomials, determine their zeros, produce their polynomial coefficients, produce related quadrature rules, project other functions onto these polynomial bases, and integrate double and triple products of the polynomials.
GEGENBAUER_POLYNOMIAL, a MATLAB library which evaluates the Gegenbauer polynomial and associated functions.
HERMITE_POLYNOMIAL, a MATLAB library which evaluates the physicist's Hermite polynomial, the probabilist's Hermite polynomial, the Hermite function, and related functions.
JACOBI_POLYNOMIAL, a MATLAB library which evaluates the Jacobi polynomial and associated functions.
LAGUERRE_POLYNOMIAL, a MATLAB library which evaluates the Laguerre polynomial, the generalized Laguerre polynomial, and the Laguerre function.
LEGENDRE_PRODUCT_POLYNOMIAL, a MATLAB library which defines Legendre product polynomials, creating a multivariate polynomial as the product of univariate Legendre polynomials.
LEGENDRE_RULE, a MATLAB program which computes a 1D Gauss-Legendre quadrature rule.
LEGENDRE_SHIFTED_POLYNOMIAL, a MATLAB library which evaluates the shifted Legendre polynomial, with domain [0,1].
LOBATTO_POLYNOMIAL, a MATLAB library which evaluates Lobatto polynomials, similar to Legendre polynomials except that they are zero at both endpoints.
PCE_LEGENDRE, a MATLAB program which assembles the system matrix of a 2D stochastic PDE, using a polynomal chaos expansion in terms of Legendre polynomials;
POLPAK, a MATLAB library which evaluates a variety of mathematical functions.
TEST_VALUES, a MATLAB library which supplies test values of various mathematical functions.