up previous next
ContentWRT    --    content of a polynomial wrt and indet or a list of indets


Syntax
ContentWRT(F: RINGELEM, X: RINGELEM): RINGELEM
ContentWRT(F: RINGELEM, L: LIST of RINGELEM): RINGELEM

Description
This function returns the (polynomial) content of F (i.e. a gcd of its coefficients) seen as a polynomial in the indeterminate X, or as a polynomial in all the indeterminates in L.

The returned value is a RingElem in RingOf(F).

Example
/**/ use P ::= QQ[x,y,z];
/**/ f := x^3*z + x*y*z^3 + 2*z;
/**/ Cx :=  CoefficientsWRT(f, x);
/**/ indent(Cx);
[
  record[PP := 1, coeff := 2*z],
  record[PP := x, coeff := y*z^3],
  record[PP := x^3, coeff := z]
]
/**/ ContentWRT(f, x);
z
/**/ ContentWRT(f, [x]);
z

See Also