up previous next
CoeffOfTerm    --    coefficient of a term of a polynomial


Syntax
CoeffOfTerm(F: RINGELEM, T: RINGELEM): RINGELEM

Description
This function returns the coefficient of the term T occurring in F.

NOTE: in CoCoA 4 the order of the arguments was different.

Example
/**/  use R ::= QQ[x,y,z];
/**/  F := 5*x*y^2 - 3*z^3;
/**/  CoeffOfTerm(F, x*y^2);
5
/**/  CoeffOfTerm(F, x^3);
0
/**/  CoeffOfTerm(F, z^3);
-3

See Also