previous  next
IsTerm
Syntax
IsTerm(X:POLY or VECTOR):BOOL
Summary
checks if the argument is a term
Description
The function determines whether X is a term.  For a polynomial, a
"term" is a power-product, i.e., a product of indeterminates.  Thus,
xy^2z is a term, while 4xy^2z and xy+2z^3 are not.  For a vector, a
term is a power-product times a standard basis vector, e.g.,
(0,xy^2z,0).

Example

Use R ::= Q[x,y,z];
IsTerm(x+y^2);
FALSE
-------------------------------
IsTerm(x^3yz^2);
TRUE
-------------------------------
IsTerm(5x^3yz^2);
FALSE
-------------------------------
IsTerm(Vector(0,0,xyz));
TRUE
-------------------------------
IsTerm(Vector(x^2,y^2));
FALSE
-------------------------------
IsTerm(5x^2);
FALSE
-------------------------------