SciPy

scipy.special.sh_legendre

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

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