CoCalc Public Filessupport / 2016-06-28-233933.sagewsOpen in with one click!
Author: William A. Stein
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
f = (x^8 - x^4 + 1)*(x^4 - x^2 + 1)*(x^4 + 1)*(x^2 + x + 1)*(x^2 - x + 1)*(x^2 + 1)*(x + 1)*(x - 1) f
(x^8 - x^4 + 1)*(x^4 - x^2 + 1)*(x^4 + 1)*(x^2 + x + 1)*(x^2 - x + 1)*(x^2 + 1)*(x + 1)*(x - 1)
v = f.factor_list() v
[(x^8 - x^4 + 1, 1), (x^4 - x^2 + 1, 1), (x^4 + 1, 1), (x^2 + x + 1, 1), (x^2 - x + 1, 1), (x^2 + 1, 1), (x + 1, 1), (x - 1, 1)]
v[0][0]
x^8 - x^4 + 1
v[1][0]
x^4 - x^2 + 1