I have a slightly complicated periodic function of one variable
I want to do a least squares fit of that function into the form
A*Cos[Ω*t]+B*Cos[2Ω*t], and figure out the values of parameters
Is there a way to do this in Mathematica? Thanks in advance!