seemps.analysis.expansion.LegendreExpansion#
- class seemps.analysis.expansion.LegendreExpansion#
Bases:
OrthogonalExpansionExpansion in the Legendre basis. The polynomials are orthogonal on [−1, 1] with uniform weight.
- Recurrence:
(k+1) Pₖ₊₁(x) = (2k+1) x Pₖ(x) − k Pₖ₋₁(x).
- get_recurrence(k: int) tuple[float, float, float][source]#
Legendre recurrence: (k+1) P_{k+1}(x) = (2k+1) x P_k(x) - k P_{k-1}(x)