up previous next
IsTerm

checks if the argument is a term

Syntax
IsTerm(X:POLY or VECTOR):BOOL

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 ::= QQ[x,y,z];
/**/  IsTerm(x+y^2);
false

/**/  IsTerm(x^3*y*z^2);
true

/**/  IsTerm(5*x^3*y*z^2);
false

/**/  IsTerm(Vector(0,0,x*y*z)); --***OBSOLETE MANUAL: WORK IN PROGRESS***
true

/**/  IsTerm(Vector(x^2,y^2)); --***OBSOLETE MANUAL: WORK IN PROGRESS***
false

/**/  IsTerm(5*x^2);
false