orthax.legendre.legnorm

orthax.legendre.legnorm(n)Source

Norm of nth Legendre polynomial.

The norm \(\gamma_n\) is defined such that

\(\int_{-1}^{1} P_n^2(x) dx = \gamma_n^2\)

With this definition \(\gamma_n^2 = 2/(2n+1)\)

Parameters:

n (int) – Order of Legendre polynomial.

Returns:

gamma_n (float) – Norm of the nth Legendre polynomial.