up previous next
prim    --    primitive part of a polynomial


Syntax
prim(f: RINGELEM): RINGELEM

Description
This function returns the "primitive part" of a polynomial with rational coefficients: scaled by a rational so that the coefficients are integer and coprime.

Example
/**/  use P ::= QQ[x,y,z];
/**/  f := 2*x+4/7;
/**/  prim(f);
7*x +2

See Also