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^3z + xyz^3 + 2z***;
/**/ Cx :=  CoefficientsWRT(F, x);
/**/ indent(Cx);
[
  Record[Coeff := 2*z, PP := 1],
  Record[Coeff := y*z^3, PP := x],
  Record[Coeff := z, PP := x^3]
]
/**/ ContentWRT(F, x);
-z
/**/ ContentWRT(F, [x]);
-z

See Also