legendre_shifted_polynomial


legendre_shifted_polynomial, a Python code which evaluates the shifted Legendre polynomial.

The standard Legendre polynomial P(n,x) is defined over the interval [-1,+1]. The shifted Legendre polynomial P01(n,x) is shifted to the interval [0,1]. The relationships are:

        P01(n,x) = P(n,(x+1)/2)
        P(n,x) = P01(n,2*x-1)
      

Licensing:

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

Languages:

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

Related Data and Programs:

polpak, a Python code which evaluates a variety of mathematical functions.

python_polynomial, a Python code which analyzes a variety of polynomial families, returning the polynomial values, coefficients, derivatives, integrals, roots, or other information.

test_values, a Python code which supplies test values of various mathematical functions.

Source Code:


Last revised on 15 March 2016.