sum sin(i*x)