I'm looking for a way to compute the Fourier coefficients for a periodic wave, knowing its spectral decomposition (i.e., amplitudes $A_n$ for each $F_n$ harmonics).
By "Fourier coefficients", I mean the $\alpha$ and $\beta$ in this formula:
$$f(t) = \sum_{n\ge0} \alpha_n\cos(n\omega t) + \sum_{n>0} \beta_n\sin(n\omega t)$$
I've seen quite a lot of explanations on how to compute spectral analysis knowing the coefficients, but I'm looking for the reverse process. I'm not really an engineer or a physicist though, so my math skills are a bit rusty.