$S(x) = -\frac12 \theta(1/2, 2x) - 1$, where $\theta$ is Jacobi's theta function. I'm not sure if this is the sort of answer you want.
S. Carnahan
- 45.7k
- 6
- 114
- 220