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 content of F (i.e. a gcd of its coefficients) seen as a polynomial in X, indet or list of indeterminates. The returned value is a RingElem in RingOf(F).

Example
/**/ Use R ::= 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