Am I doing something wrong in plot or is this a bug?
I put this into sagecell online and get a messed up plot. f(x) simplifies to 1.
f(x)=2/3(cos(x)^2 + cos(x-(2/3)pi)^2 + cos(x-(4/3)*pi)^2)
(plot( f , -4,4))