Subresultants
Subresultants[poly1, poly2, var] generates a list of the principal subresultant coefficients of the polynomials poly1 and poly2 with respect to the variable var.
Subresultants[poly1, poly2, var, Modulus -> p]computes the principal subresultant coefficients modulo the prime p.
Examples
Subresultants[x^3 + 2 x + 1, x^2 - 1, x]Please visit the official Wolfram Language Reference for more details.