

def dmp_resultant(f, g, u, K, includePRS=False):
    '\n    Computes resultant of two polynomials in `K[X]`.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, ZZ\n    >>> R, x,y = ring("x,y", ZZ)\n\n    >>> f = 3*x**2*y - y**3 - 4\n    >>> g = x**2 + x*y**3 - 9\n\n    >>> R.dmp_resultant(f, g)\n    -3*y**10 - 12*y**7 + y**6 - 54*y**4 + 8*y**3 + 729*y**2 - 216*y + 16\n\n    '
    if (not u):
        return dup_resultant(f, g, K, includePRS=includePRS)
    if g:
        return dmp_prs_resultant(f, g, u, K)
    if K.has_Field:
        if (K.is_QQ and query('USE_COLLINS_RESULTANT')):
            return dmp_qq_collins_resultant(f, g, u, K)
    elif (K.is_ZZ and query('USE_COLLINS_RESULTANT')):
        return dmp_zz_collins_resultant(f, g, u, K)
    return dmp_prs_resultant(f, g, u, K)[0]

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dmp_resultant/VarMisuse@46/268 `includePRS`->`g`