WolframAlpha computational knowledge AI
sum n*exp(i*w*(n-M)), n=1 to M