NLA-lib Explorer

NLAlib.orthogonalPolynomial

Library · def

The monic orthogonal polynomials of \mu, by the Stieltjes procedure: \pi_0 = 1, \pi_1 = \mathbf{x} - \alpha_0 and \pi_{k+2} = (\mathbf{x} - \alpha_{k+1})\pi_{k+1} - \beta_{k+1}\pi_k, with \alpha_k = \int \mathbf{x}\pi_k^2\,d\mu/\int\pi_k^2\,d\mu and \beta_k = \int\pi_k^2\,d\mu/\int\pi_{k-1}^2\,d\mu (jacobiAlpha, jacobiBeta). \pi_k is monic of degree k for every \mu and k. For a finite measure with compact support it is orthogonal to every polynomial of degree less than k (isOrthogonalPolynomial_orthogonalPolynomial), and it is the only monic such polynomial of degree k when \mu is positive definite up to degree k (IsMomentPosDef.eq_orthogonalPolynomial). Junk: a zero norm gives a zero coefficient (\mathbf{x}/0 = 0); for a measure with N support points, \pi_N is then the nodal polynomial of the support and every later \pi_k a multiple of it (not proved here). [Gautschi2004, Theorem 1.27].

NLAlib.orthogonalPolynomial (μ : Measure ℝ) : ℕ → Polynomial ℝ

Full source on GitHub

Import NLAlib.Polynomial.Orthogonal.Recurrence.