Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The problem is that the connection to prints only occurs at integral values of $x$, and the function is so oscillatory that the sum over the integers is a terrible approximation to the integral.