CoCoA:IsZero

From ApCoCoAWiki

IsZero

test whether an object is zero

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
-------------------------------

Syntax

IsZero(X:OBJECT):BOOL

IsEven, IsOdd

   <type>boolean</type>
   <type>ideal</type>
   <type>integer</type>
   <type>matrix</type>
   <type>module</type>
   <type>polynomial</type>
   <type>rat</type>
   <type>ratfun</type>
   <type>vector</type>
   <type>zmod</type>