| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.