(f)
return len(f.to_dict()) <= 1
Returns ``True`` if ``f`` is zero or has only one term.
Returns ``True`` if ``f`` is zero or has only one term.
Returns True if f is zero or has only one term .
def is_monomial(f):
        """Returns ``True`` if ``f`` is zero or has only one term. """
        return len(f.to_dict()) <= 1
def is_monomial ( f ) : return len ( f . to_dict ( ) ) <= 1