One of my favorite functions is $S(x)=\frac{\sin(x)}{x},$ where we set $S(0)=1$ (the continuous extension). This function solves the Basel Problem- with some assumptions- and does other cool stuff.
I noticed it has the following property:
$$\sum_{n=-\infty}^{\infty}S(n)=\int_{-\infty}^{\infty} S(x)dx=\pi.$$
You can prove the LHS using Fourier series and you can prove the RHS using the Residue Theorem, or some very clever methods.
My question: Are there other nontrivial functions with this property? That is, aside from linear combinations of $S$, are there other elementary functions $f$ that satisfy $$\sum_{n=-\infty}^{\infty}f(n)=\int_{-\infty}^{\infty} f(x)dx\;?$$