(f)
return all(sum(monom) <= 1 for monom in dmp_to_dict(f.rep, f.lev, f.dom).keys())
Returns ``True`` if ``f`` is linear in all its variables.
Returns ``True`` if ``f`` is linear in all its variables.
Returns True if f is linear in all its variables .
def is_linear(f):
        """Returns ``True`` if ``f`` is linear in all its variables. """
        return all(sum(monom) <= 1 for monom in dmp_to_dict(f.rep, f.lev, f.dom).keys())
def is_linear ( f ) : return all ( sum ( monom ) <= 1 for monom in dmp_to_dict ( f . rep , f . lev , f . dom ) . keys ( ) )