cosθ=[e^(iθ)+e^(-iθ)]/2
cos2θ=[e^(2iθ)+e^(-2iθ)]/2
cos3θ=[e^(3iθ)+e^(-3iθ)]/2
...
cosnθ=[e^(inθ)+e^(-inθ)]/2