Test for a freealg object's being zero

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

Robin K. S. Hankin

See also

Examples


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