SciPy

scipy.special.sh_legendre

scipy.special.sh_legendre(n, monic=0)[source]

Returns the nth order shifted Legendre polynomial, P^*_n(x), orthogonal over [0,1] with weighting function 1.