Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Borrowed from this answer, try the Sympy solver:

from sympy import sympify
from sympy.solvers import solve
x = var('x')
for m in (3,5,7,9,11,13,15,17,19):
    c = cyclotomic_polynomial(m)
    print solve(sympify(c),x)

I'm not sure why this isn't just an algorithm option, I've opened Trac 22322 for this.