'Returns the GCD of polynomial coefficients.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x
>>> Poly(6*x**2 + 8*x + 12, x).content()
2'

def content(f):

    if hasattr(f.rep, 'content'):
        result = f.rep.content()
    else:
        raise OperationNotSupported(f, 'content')
    return f.rep.dom.to_sympy(result)
