up previous next
IsZero

test whether an object is zero
Syntax

IsZero(X:OBJECT):BOOL


Description
This function tests whether its argument is zero; the argument can be of almost any type for which zero makes sense.

Example
IsZero(23);
FALSE
-------------------------------
IsZero(3-3);
TRUE
-------------------------------
Use R ::= Q[x,y];
IsZero(x^2+3y-1);
FALSE
-------------------------------
IsZero(Ideal(x^2,xy^3));
FALSE
-------------------------------
IsZero(Vector(0,0,0));
TRUE
-------------------------------


See Also