e-primitive-part

▸ function ePrimitivePart (p: number[][]): number[][]

Defined in factor/expansion/e-primitive-part.ts:25

Returns the primitive part of the given polynomial.

  • the sign is chosen such that the leading term coefficient is positive

  • see e.g. Factorization of polynomials

  • example: let p = -10x² + 5x + 5 = (-5)(2x² - x - 1) so that -5 is the content of p and 2x² - x - 1 is its primitive part.

Parameters:

NameType
pnumber[][]

Returns: number[][]