def dmp_invert(f, g, u, K):
    if not u:
        return dup_invert(f, g, K)
    else:
        raise MultivariatePolynomialError(f, g)
Compute multiplicative inverse of `f` modulo `g` in `F[X]`.
dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dmp_invert