I'm trying to find $$ \sum_{n=-\infty}^\infty \int_{-\pi}^\pi e^{-x^2} \cos(nx) dx. $$
About the only thing I can think of is the well-known identity
$$ \sum_{n=-k}^k \cos(nx) = \sum_{n=-k}^k e^{inx} = \frac{\sin\left((k+\frac{1}{2})x\right)}{\sin\left(\frac{x}{2}\right)}. $$
But this doesn't seem to simplify things much.