'Returns all monomials from a univariate polynomial ``f``.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x
>>> Poly(x**3 + 2*x - 1, x).all_monoms()
[(3,), (2,), (1,), (0,)]
See Also
all_terms'

def all_monoms(f):

    return f.rep.all_monoms()
