Posts

Showing posts from April 8, 2019

Collect Fourier series terms

Image
3 $begingroup$ Is there a way to make mathematica automatically collect terms like $mathrm{Cos}[n x]$ with $n=1,2,3...$ ? I have a long expression coming out of a Fourier series where I see a lot of $Cos[x],Cos[2 x],Cos[3 x]$ and so on, but Simplify is very inefficient. I would like mathematica to automatically collect all coefficients of the various Cos[n x] without having to do it manually for each one of them. coefficients share | improve this question asked 2 days ago Riccardo Riccardo 50 5 $endgroup$