(f)
return f.rep == [f.dom.one]
Returns ``True`` if ``f`` is a unit algebraic number.
Returns ``True`` if ``f`` is a unit algebraic number.
Returns True if f is a unit algebraic number .
def is_one(f):
        """Returns ``True`` if ``f`` is a unit algebraic number. """
        return f.rep == [f.dom.one]
def is_one ( f ) : return f . rep == [ f . dom . one ]