zero: The zero algebraic object

zeroR Documentation

The zero algebraic object

Description

Test for a freealg object's being zero

Usage

is.zero(x)

Arguments

x

Object of class freealg

Details

Function is.zero() returns TRUE if x is indeed the zero free algebra object. It is defined as length(coeffs(x))==0 for reasons of efficiency, but conceptually it returns x==constant(0).

(Use constant(0) to create the zero object).

Author(s)

Robin K. S. Hankin

See Also

constant

Examples


stopifnot(is.zero(constant(0)))


RobinHankin/freealg documentation built on Dec. 24, 2024, 3:16 a.m.