$${E(n \omega) = d_n = \frac{1}{T} \int_{-\frac{T}{2}}^{\frac{T}{2}} E(t) \exp(- i n \omega t) dt}$$