Function is.zero() returns TRUE if x is indeed the zero polynomial. It is defined as length(vars(x))==0 for reasons of efficiency, but conceptually it returns x==constant(0).
(Use constant(0) to create the zero polynomial).
Author(s)
Robin K. S. Hankin
Note
I would have expected the zero polynomial to be problematic (cf the list("freegroup") and list("permutations") packages, where similar issues require extensive special case treatment). But it seems to work fine, which is a testament to the robust coding in the .