polynomial_conversion
polynomial_conversion,
a MATLAB code which
converts representations of a polynomial between monomial, Bernstein,
Chebyshev, Gegenbauer, Hermite, Laguerre and Legendre forms.
The monomial or power sum representation of a polynomial of degree n
involves a vector a of coefficients, and has the form:
p(x) = a(0) + a(1) * x + a(2) * x^2 + ... + a(n) * x^n
A Chebyshev representation, for instance, will use a different
vector c of coefficients, and Chebyshev basis functions T(x) so that
p(x) = c(0) T0(x) + c(1) * T1(x) + c(2) * T2(x) + ... + c(n) * Tn(x)
It is the task of this software to take the coefficients for one
representation, and determine the corresponding coefficients in
another specified representation.
Licensing:
The information on this web page is distributed under the MIT license.
Languages:
polynomial_conversion is available in
a C version and
a C++ version and
a Fortran77 version and
a Fortran90 version and
a MATLAB version and
a Octave version and
a Python version.
Related Data and Programs:
polynomial_conversion_test
bernstein_polynomial,
a MATLAB code which
evaluates the Bernstein polynomials,
useful for uniform approximation of functions;
chebyshev_polynomial,
a MATLAB code 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.
hermite_polynomial,
a MATLAB code which
evaluates the physicist's Hermite polynomial,
the probabilist's Hermite polynomial,
the Hermite function, and related functions.
laguerre_polynomial,
a MATLAB code which
evaluates the Laguerre polynomial, the generalized Laguerre polynomial,
and the Laguerre function.
legendre_polynomial,
a MATLAB code which
evaluates the Legendre polynomial and associated functions.
test_matrix,
a MATLAB code which
defines test matrices for which the condition number, determinant,
eigenvalues, eigenvectors, inverse, null vectors, P*L*U factorization
or linear system solution are known. Examples include the
Fibonacci, Hilbert, Redheffer, Vandermonde, Wathen and Wilkinson
matrices.
Source Code:
-
bernstein_to_legendre01.m,
converts a Bernstein representation to Legendre01 representation;
-
bernstein_to_legendre01_matrix.m,
Bernstein-to-Legendre01 matrix.
-
bernstein_to_monomial.m,
converts a Bernstein representation to monomial representation;
-
bernstein_to_monomial_matrix.m,
Bernstein-to-monomial matrix.
-
chebyshev_to_monomial.m,
converts a Chebyshev representation to monomial representation;
-
chebyshev_to_monomial_matrix.m,
Chebyshev-to-monomial matrix.
-
gegenbauer_to_monomial.m,
converts a Gegenbauer representation to monomial representation.
-
gegenbauer_to_monomial_matrix.m,
Gegenbauer-to-monomial matrix.
-
hermite_to_monomial.m,
converts a Hermite representation to monomial representation;
-
hermite_to_monomial_matrix.m,
Hermite-to-monomial matrix.
-
laguerre_to_monomial.m,
converts a Laguerre representation to monomial representation;
-
laguerre_to_monomial_matrix.m,
Laguerre-to-monomial matrix;
-
legendre_to_monomial.m,
converts a Legendre representation to monomial representation;
-
legendre_to_monomial_matrix.m,
Legendre-to-monomial matrix;
-
legendre01_to_bernstein.m,
converts a Legendre01 representation to Bernstein representation;
-
legendre01_to_bernstein_matrix.m,
Legendre01-to-Bernstein matrix;
-
monomial_to_bernstein.m,
converts a monomial representation to Bernstein representation;
-
monomial_to_bernstein_matrix.m,
monomial-to-Bernstein matrix;
-
monomial_to_chebyshev.m,
converts a monomial representation to Chebyshev representation;
-
monomial_to_chebyshev_matrix.m,
monomial-to-Chebyshev matrix;
-
monomial_to_gegenbauer.m,
converts monomial representation to Gegenbauer representation;
-
monomial_to_gegenbauer_matrix.m,
monomial-to-Gegenbauer matrix;
-
monomial_to_hermite.m,
converts a monomial representation to Hermite representation;
-
monomial_to_hermite_matrix.m,
monomial-to-Hermite matrix;
-
monomial_to_laguerre.m,
converts a monomial representation to Laguerre representation;
-
monomial_to_laguerre_matrix.m,
monomial-to-Laguerre matrix;
-
monomial_to_legendre.m,
converts a monomial representation to Legendre representation;
-
monomial_to_legendre_matrix.m,
monomial-to-Legendre matrix;
Last revised on 26 April 2024.