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

def all_terms(f):

    return [(m, f.rep.dom.to_sympy(c)) for (m, c) in f.rep.all_terms()]
