CoCoA:CoeffOfTerm

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CoeffOfTerm

coefficient of a term of a polynomial or vector

Description

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

Example

  Use R ::= Q[x,y,z];
  F := 5xy^2-3z^3;
  CoeffOfTerm(xy^2,F);
5
-------------------------------
  CoeffOfTerm(x^3,F);
0
-------------------------------
  CoeffOfTerm(z^3,F);
-3
-------------------------------
  CoeffOfTerm(Vector(0,x^3,0), Vector(x+3,6xy-5x^3,x-z^2));
-5
-------------------------------

Syntax

CoeffOfTerm(T:POLY,F:POLY):C
CoeffOfTerm(T:VECTOR,F:VECTOR):C

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

Coefficients

LC

Log

LogToTerm

Monomials

Support

   <type>polynomial</type>
   <type>vector</type>