zero function

The zero frab object

The zero frab object

Test for a frab object's being zero (empty).

zero(...) is.zero(x) is.empty(x)

Arguments

  • x: Object of class frab
  • ...: Further arguments (currently ignored)

Details

Function zero() returns the empty frab object; this is the additive identity 00 with property x+0=0+x=xx+0=0+x=x.

Function is.zero() returns TRUE if its argument is indeed the zero object.

Function is.empty() is a synonym for is.zero(). Sometimes one is thinking about the free Abelian group, in which case is.zero() makes more sense, and sometimes one is thinking about maps and tables, in which case is.empty() is more appropriate.

Returns

Function zero() returns the zero frab object, function is.zero() a Boolean

Author(s)

Robin K. S. Hankin

Examples

zero() zero() + zero() x <- rfrab() x+zero() == x is.zero(zero())
  • Maintainer: Robin K. S. Hankin
  • License: GPL (>= 2)
  • Last published: 2024-07-24