NLA-lib Explorer

NLAlib.oddScalarUpdate_coeff

Library · theorem

The odd update with coefficients of a polynomial of degree at most q sends \mathbf{x} to \mathbf{x} p(\mathbf{x}^2). Trailing coefficients may vanish. [AmselPerssonMuscoGower2026, Appendix E].

NLAlib.oddScalarUpdate_coeff {q : ℕ} (p : Polynomial ℝ) (hp : p.natDegree ≤ q) (x : ℝ) :
  oddScalarUpdate q p.coeff x = x * Polynomial.eval (x ^ 2) p

Full source on GitHub

Import NLAlib.Polynomial.Approximation.GreedyOddMinimax.