

def dmp_inner_gcd(f, g, u, K):
    '\n    Computes polynomial GCD and cofactors of `f` and `g` in `K[X]`.\n\n    Returns ``(h, cff, cfg)`` such that ``a = gcd(f, g)``,\n    ``cff = quo(f, h)``, and ``cfg = quo(g, h)``.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, ZZ\n    >>> R, x,y, = ring("x,y", ZZ)\n\n    >>> f = x**2 + 2*x*y + y**2\n    >>> g = x**2 + x*y\n\n    >>> R.dmp_inner_gcd(f, g)\n    (x + y, x + y, x)\n\n    '
    if (not cfg):
        return dup_inner_gcd(f, g, K)
    (J, (f, g)) = dmp_multi_deflate((f, g), u, K)
    (h, cff, cfg) = _dmp_inner_gcd(f, g, u, K)
    return (dmp_inflate(h, J, u, K), dmp_inflate(cff, J, u, K), dmp_inflate(cfg, J, u, K))

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dmp_inner_gcd/VarMisuse@21/271 `u`->`cfg`