
primpart - primitive part of a polynomial

Calling sequence:
primpart(poly)
primpart(expr [ , indets ])
indets  ---> [ expr_1 ...]

Parameter:
poly           --  polynomial
expr, expr_1   --  expressions

Summary:

primpart calculates the primitive part of a polynomial, i.e. the greatest
common divisor of the coefficients of the polynomial is removed. The contents
must be able to be calculated using the function gcd.

The first argument of primpart is allowed to be a polynomial or an expression
and optionally a listof indeterminates.  An expression is converted into a
polynomial in the specified indeterminates (see function poly).  primpart
returns FAIL if the expression cannot be converted into a polynomial.

>>  primpart(poly(6*x^3*y + 3*x*y + 9*y, [x,y]));

     poly(3*y + x*y + 2*x^3*y, [x, y])

>>  primpart(poly(6*x^3*y + 3*x*y + 9*y, [x]));

      poly(x + 2*x^3 + 3, [x])

>>  normal(primpart(4*x*y + 6*x^3 + 6*x*y^2 + 9*x^3*y, [x]));

      2*x*y + 3*x^3

See also:  content , gcd, poly

