I'm looking for the Fourier coefficient of a "periodic Gaussian", which writes $$ f(x) = e^{-\frac{1}{2s}(\cos(\pi x) - m)^2} $$ It is a real even 2-periodic function, so its Fourier coefficients are real and even. I don't necessarily want a closed-form solution, anything which is numerically tractable to compute is fine!
I tried using the Taylor series of exponential, using the binomial coefficient then writing $\cos (\pi x)$ with Euler's formula, but the resulting formula is not very inspiring. I get $$ c_{2p} = \sum_{n \geq p} \frac{(-2s)^{-n}}{n!} \sum_{k=p}^n \binom{2n}{2k} \binom{2k}{k+p} (-m)^{2(n-k)} 4^{-k} $$ which gets midely simplified with Mathematica. Besides, the integral relation $$ c_p = \frac{1}{2} \int_{-1}^1 e^{-\frac{1}{2s}(\cos(\pi x) - m)^2} e^{-i\pi p x} {\rm d} x $$ did not work for me neither. I could simply use this last relation with integral quadrature solver but the cost is too high.
I found great tricks on this forum before, so I'm trying my luck now! Any help or pointer would be greatly appreciated.
Additional information
- Something in the spirit of this related question would be incredible.
- After comparing the formula of $c_{2p}$ in Mathematica with the integral formulation on random samples, it seems correct.
- My use case focuses on $s \approx 1$ and $m \approx 0$, both real numbers.