Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(In Python. Preferably with comments so I can better understand what you're doing. I am actually trying to learn this material, after all.) Exercise 3.1:

(In Python. Preferably with comments so I can better understand what you're doing. I am actually trying to learn this material, after all.)

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 function of time. b) Modify your program to display on 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

$$Y_k=\frac{1}{2r}\sum\limits_{m=-r}^r y_{k+m},$$ (formatting would not transfer over well.)

where r=5 in this case (and the y_k 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

8-15 Discuss the impact of the Equifax hack.

Answered: 1 week ago

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago