The multiplier, quotient and remainder of a pseudo-division.
Instances For
The fixed leading-coefficient exponent, including the zero/smaller-input cases.
Equations
Instances For
Pseudo-division with its actual scalar multiplier. The quotient and remainder
reuse pseudoDivMod. On a zero divisor or a smaller dividend the multiplier is one.
Equations
- p.pseudoDiv q = { multiplier := npowRec (p.pseudoExponent q) q.leadingCoeff, quotient := (p.pseudoDivMod q).fst, remainder := (p.pseudoDivMod q).snd }
Instances For
Choose a positive multiplier by negating all three outputs together when necessary. The leading-coefficient sign and exponent parity determine the correction, avoiding a sign query on the larger computed power.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Sign correction cannot increase the stored remainder size, even before any interpretation or algebraic laws are supplied.
Plain pseudo-gcd. Its recursion decreases the stored size of the second
polynomial, with no user bound and no Bézout polynomials. Correctness over a
domain is a fraction-field gcd statement, not a gcd statement in R[X].
Instances For
A genuine coefficient domain has a nonzero pseudo-division multiplier; no division or field structure on the coefficient type is involved.
The recorded operation-only power agrees with the ring's natural power.
Reconstruction uses exactly the multiplier returned by pseudoDiv, including
zero dividends and dividends smaller than the divisor.