The integer Möbius transform of p relative to (a, b]: the numerator of
(1 + x)^{deg p} · p((a + bx)/(1 + x)) after clearing the dyadic denominators
(a positive power of two). Its positive real roots correspond bijectively, with
multiplicity, to the real roots of p in the open interval (a, b).
The pipeline, with n = deg p fixed up front and (α, β, s) from
mobiusEndpoints (so a = α·2^{-s}, b = β·2^{-s}):
(b) clear the dyadic denominator. Replace
xbyx·2^{-s}, i.e. form2^{s·n}·p(x·2^{-s}): coefficientaᵢ ↦ aᵢ·2^{s·(n−i)}. This scales every root by2^s, so the interval becomes(α, β]with integer endpoints.(c) Taylor shift the right endpoint to the origin.
q ↦ q(x + β)viacomposewith the degree-one argumentx + β; a rootyof the cleared polynomial becomesy − β, so the interval's roots now lie in[α−β, 0).(d) rescale to
(0, 1].dilate (α−β)evaluates at(α−β)·x(a negative dilation), sending a rooty − βtou = (β−y)/(β−α), so roots in(α, β)map to(0, 1)withy = α ↦ u = 1andy = β ↦ u = 0.(e) reverse at the original degree
n. Build the coefficient array of lengthn+1with entryiequal tocoeff (n − i)and renormalize; this is thex ↦ 1/xhomogenization(1+x)^{deg p}, sending(0, 1)to(1, ∞). Reversing atnrather than the current degree is essential: whenp(b) = 0with multiplicitym, themlowest coefficients after (c)/(d) vanish; the reversal turns them into trailing zeros, whichofCoeffstrims, dropping the degree bym. Those roots correctly disappear (their image underx ↦ 1/xis∞— a root atbis not in the open(a, b)).(f) shift back to the positive axis.
r ↦ r(x + 1)viacompose, sending(1, ∞)to(0, ∞). Chasing the maps: a rootx₀ofpcorresponds to the final roottwithx₀ = (a + b·t)/(1 + t)— the required Möbius map, witht > 0 ⟺ x₀ ∈ (a, b). A root atalands att = 0(a vanishing constant term, not a positive root), a root atbdisappears at∞via the degree drop in (e), so the positive real roots of the result are exactly the images ofp's roots in the open(a, b), with multiplicity.
No content/primitivePart division is taken anywhere: sign variations are
scale-invariant, so a content gcd would be pure cost against the O(n²)
per-node budget.
For deg p ≤ 0 (p constant or zero) there is no interval structure to
transform; p is returned unchanged as a documented junk value (no theorem
reads it).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Sign variations of the coefficient list: the Descartes bound. Each stored
coefficient is reduced to its exact sign in {−1, 0, 1} and the resulting list
is fed to signVar (zero-skipping sign-variation count).