from sympy import symbols, gcd
x = symbols('x')
p1 = x**4 + 2*x**3 + 3*x**2 + 2*x + 1
p2 = x**4 - 2*x**2 - 3*x - 2
print(gcd(p2, p1))
when i do this in python i get x**2 + x + 1 as the result but if i do this using Euclidian's algorithm by hand i get that the answer is 1 and when i do this using a calculator (symbolab) i get that the answer is also 1 so what am i missing here?