Root centroid and centered source
DefinitionDerivativeChainContinuation_CenteredSourcecompression-deficitcontinuation-20261026derivative-chains
Define the root centroid by the multiplicity-weighted mean of the complex roots. The centered source translates the polynomial by this centroid, retaining its actual degree and root multiplicities.
Definition code
import Mathlib import Definitions.Def_DerivativeChainPrivate_foundations set_option autoImplicit false namespace DerivativeChainContinuation open Polynomial noncomputable def rootCentroid (p : Polynomial ℂ) : ℂ := p.roots.sum / (p.natDegree : ℂ) noncomputable def centeredSource (p : Polynomial ℂ) : Polynomial ℂ := p.comp (X + C (rootCentroid p)) end DerivativeChainContinuation
Source