First time here? Check out the FAQ!
answered 2025-03-21 21:12:10 +0200
Like this:
mymod = 21 x = polygen(Zmod(mymod)) f = x^4 + x^2 + 1 print( f.roots(multiplicities=False) )