What would be a suitable regularized value for the following divergent series:
$$ S(y) = \sum_{k=1}^{\infty} \cos(k y) \quad y \in R\\ $$
By way of added context, this series arises from a formal Fourier expansion. The regularized $S(y)$ is to be integrated subsequently over a symmetric, real interval.
Thanks.