| previous next |
| CoeffOfTerm |
| 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. |
| Summary |
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 ------------------------------- |
| See also: |