

def dmp_subresultants(f, g, u, K):
    '\n    Computes subresultant PRS 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    >>> a = 3*x*y**4 + y**3 - 27*y + 4\n    >>> b = -3*y**10 - 12*y**7 + y**6 - 54*y**4 + 8*y**3 + 729*y**2 - 216*y + 16\n\n    >>> R.dmp_subresultants(f, g) == [f, g, a, b]\n    True\n\n    '
    return dmp_inner_subresultants(f, g, u, K)[0]

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py dmp_subresultants/original