
content - content of a polynomial

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

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

Overloading:

1

Summary:

content calculates the content of a polynomial, i.e. the greatest common
divisor of the coefficients of the polynomial. The greatest common divisor of
the coefficients must be able to be calculated using the function gcd.

The first argument of content 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).  content
returns FAIL if the expression cannot be converted into a polynomial.

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

      3

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

      3*y

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

      3*y + 2

See also:  gcd, poly, primpart

