
icontent - integer contents of a polynomial

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

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

Overloading:

1

Summary:

icontent calculates the contents of a polynomial with integer or rational
coefficients.

 o  A polynomial with integer coefficients has the greatest common divisor
    of the coefficients as its contents.

 o  A polynomial with rational coefficients has the greatest common divisor
    of the numerators of the coefficients divided by the least common multiple
    of the denominators as its contents.

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

returns an error if the polynomial has no rational coefficients. icontent is a
kernel function.

>>  icontent(6*x*y+9*y^2+21, [x,y]);

      3

>>  p := poly(6/7*x*y+9/4*y+12/14): icontent(p);

      3/28

>>  icontent(0, [x,y]);

      0

See also:  poly

