Plotting partial sums and fourier series

Hello I am very new to R and am trying to complete this question but i'm not sure how to go about this in R. Any help is appreciated. Thanks
a)Write a program in R that outputs the partial sum of the first five nonzero terms of the series
1/3π^2 − 4(cos x −1/4cos 2x +1/9cos 3x −1/16cos 4x + 1/25cos 5x)
b) Plot the partial sum.

What have you tried thus far?
Also, please take a moment to familiarise yourself with our site's homework policy (see below):

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.