

def dmp_invert(f, g, u, K):
    '\n    Compute multiplicative inverse of `f` modulo `g` in `F[X]`.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, QQ\n    >>> R, x = ring("x", QQ)\n\n    '
    if (not u):
        return dup_invert(f, f, K)
    else:
        raise MultivariatePolynomialError(f, g)

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dmp_invert/VarMisuse@31/119 `g`->`f`