Hi there,
I have spent several days working on this project and trying to learn from others/the online Mathematica manual. After toiling hard on my own, I am now encountering three issues and would appreciate any help as soon as is possible. I am attaching my notebook to this post.
Firstly, if you open the notebook, you will see some data . This is the data that I am analysing. Scroll down to the recon[x] and you will see the Fourier series that Mathematica has generated for me. When I try to transfer this series to other software (e.g. Desmos), it goes funny, so I want to keep things on Mathematica if possible.
issues:
1) How can I draw several lines on the same plot? In this case, I want to draw the Fourier series (recon[x]) and the original data. To this plot, I would then like to add the Fourier series with only the first 5 cosine and 5 sine terms drawn.
2) At the very end, I start to multiply my data by cosine. I would like Mathematica to integrate this new function over the period (I can input these values) and work out the area under the curve. How can I do this?
3) Going back to (1) - is it possible to add a slider, whereby instead of adding the first 5 cosine and sine terms I can add a varying number. This would allow me to see at what point the approximation starts getting close.
I will be happy to clarify anything I've said which makes no sense at all! Really looking forward to receiving your help.
Very best wishes,
Attachments: