Learn R Programming

freealg (version 1.1-8)

zero: The zero algebraic object

Description

Test for a freealg object's being zero

Usage

is.zero(x)

Arguments

x

Object of class freealg

Author

Robin K. S. Hankin

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

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

Run the code above in your browser using DataLab