freealg (version 1.0-0)

zero: 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).

See Also

constant

Examples

Run this code
# NOT RUN {
stopifnot(is.zero(constant(0)))

# }

Run the code above in your browser using DataLab