up previous next
CoeffOfTerm

coefficient of a term of a polynomial or vector

Syntax
CoeffOfTerm(F:POLY, T:POLY):C
CoeffOfTerm(F:VECTOR, T:VECTOR):C --***OBSOLETE MANUAL: WORK IN PROGRESS***

where T is a term (no coefficient) and C is one of INT, RAT, or ZMOD.

Description
This function returns the coefficient of the term T occurring in F. NB: In CoCoA 4 the order of the arguments was different.

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

/**/  CoeffOfTerm(F, x^3);
0

/**/  CoeffOfTerm(F, z^3);
-3

/**/  CoeffOfTerm(Vector(0,x^3,0), Vector(x+3, 6xy-5x^3, x-z^2));--***OBSOLETE MANUAL: WORK IN PROGRESS***
-5

See Also