NLA-lib Explorer

NLAlib.chebyshevResidual

Library · def

The normalized residual is r_q(\mathbf{x})=\frac{T_q((\mathbf{b}+a-2\mathbf{x})/(\mathbf{b}-a))}{T_q((\mathbf{b}+a)/(\mathbf{b}-a))}. For 0<a<\mathbf{b} it equals one at zero and is small on [a,\mathbf{b}]. [Saad2003, Theorem 6.25 and following corollary]. The definition is total: division by zero uses Lean's zero inverse. If the normalizing denominator vanishes, the polynomial is zero; when a=\mathbf{b}, both affine coefficients are zero, so the result is the constant T_q(0)^{-1}T_q(0). No normalization is asserted outside 0<a<\mathbf{b}.

NLAlib.chebyshevResidual (a b : ℝ) (q : ℕ) : Polynomial ℝ

Full source on GitHub

Import NLAlib.Polynomial.Chebyshev.Residual.