'Raise ``f`` to a non-negative power ``n``.
Examples
>>> from sympy import Poly
>>> from sympy.abc import x
>>> Poly(x - 2, x).pow(3)
Poly(x**3 - 6*x**2 + 12*x - 8, x, domain=\'ZZ\')
>>> Poly(x - 2, x)**3
Poly(x**3 - 6*x**2 + 12*x - 8, x, domain=\'ZZ\')'

def pow(f, n):

    n = int(n)
    if hasattr(f.rep, 'pow'):
        result = f.rep.pow(n)
    else:
        raise OperationNotSupported(f, 'pow')
    return f.per(result)
