Go to the first, previous, next, last section, table of contents.

### `prim`, `cont`

`prim(poly[,v])`
  :: Primitive part of poly.
`cont(poly[,v])`
  :: Content of poly.

return poly
  polynomial over the rationals
v
  indeterminate

- The primitive part and the content of a polynomial poly with respect to its main variable (v if specified).

    [0] E=(y-z)*(x+y)*(x-z)*(2*x-y);
    (2*y-2*z)*x^3+(y^2-3*z*y+2*z^2)*x^2+(-y^3+z^2*y)*x+z*y^3-z^2*y^2
    [1] prim(E);
    2*x^3+(y-2*z)*x^2+(-y^2-z*y)*x+z*y^2
    [2] cont(E);
    y-z
    [3] prim(E,z);
    (y-z)*x-z*y+z^2

`References`
  section `var`, section `ord`.

Go to the first, previous, next, last section, table of contents.