def dmp_revert(f, g, u, K):
    if not u:
        return dup_revert(f, g, K)
    else:
        raise MultivariatePolynomialError(f, g)
Compute ``f**(-1)`` mod ``x**n`` using Newton iteration.
dataset/ETHPy150Open sympy/sympy/sympy/polys/densetools.py/dmp_revert