e-pdiv-trivial

▸ function ePdivTrivial (a: number[][], b: number[][], positiveMultiplier?: boolean): object

Defined in euclidean-division-related/expansion/e-pdiv-trivial.ts:52

Performs a trivial pseudo-division and returns the quotient and remainder of the pseudo division of a/b (a, b both being polynomials) in such a way that all intermediate calculations and the final result are done in ℤ, i.e. performs Euclidean (i.e. long) division on the two given polynomials, a/b, and returns a scaled r and q in the formula a = bq + r, where degree(r) < degree(b). q is called the quotient and r the remainder.

Parameters:

NameTypeDefault valueDescription
anumber[][]-the polynomial a in the formula a = bq + r; the polynomial is given with coefficients as a dense array of integer Shewchuk expansions from highest to lowest power, e.g. [[5],[-3],[0]] represents the polynomial 5x^2 - 3x
bnumber[][]-the polynomial b in the formula a = bq + r
positiveMultiplierbooleanfalsedefaults to false - if set to true then the multiplier (of the coefficients of the dividend) leadingCoeff(b)^(deg(a)-deg(b)+1) will be modified to abs(leadingCoeff(b)^(deg(a)-deg(b)+1))

Returns: object