Question: Python 3.9: I already have (a) and (b), just cant figure out the setup for (c). Exercise 3.1: Plotting experimental data In the on-line resources

Python 3.9: I already have (a) and (b), just cant figure out the setup for (c). Python 3.9: I already have (a) and (b), just cant figure out

Exercise 3.1: Plotting experimental data In the on-line resources you will find a file called sunspots.txt, which contains the observed number of sunspots on the Sun for each month since January 1749. The file contains two columns of numbers, the first being the month and the second being the sunspot number a) Write a program that reads in the data and makes a graph of sunspots as a func- tion of time. b) Modify your program to display only the first 1000 data points on the graph. c) Modify your program further to calculate and plot the running average of the data, defined by 1 Y 2r +1 yatm TE- hr where r = 5 in this case (and the yx are the sunspot numbers). Have the program plot both the original data and the running average on the same graph, again over the range covered by the first 1000 data points. Exercise 3.1: Plotting experimental data In the on-line resources you will find a file called sunspots.txt, which contains the observed number of sunspots on the Sun for each month since January 1749. The file contains two columns of numbers, the first being the month and the second being the sunspot number a) Write a program that reads in the data and makes a graph of sunspots as a func- tion of time. b) Modify your program to display only the first 1000 data points on the graph. c) Modify your program further to calculate and plot the running average of the data, defined by 1 Y 2r +1 yatm TE- hr where r = 5 in this case (and the yx are the sunspot numbers). Have the program plot both the original data and the running average on the same graph, again over the range covered by the first 1000 data points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!