Ask Your Question

Revision history [back]

Faster way that is documented in the function gcd

sage: R.<x> = PolynomialRing(QQ,'x')
sage: f = x^4+x^2+1
sage: g = x^4-x^2-2*x
sage: h = x^3-1
sage: gcd([f,g,h])
1