Question: 7. Write a python program that creates a sinusoidal function with f=60Hz for a 1 second duration. Use a step size of T/100 where, T

7. Write a python program that creates a sinusoidal function with f=60Hz for a 1 second duration. Use a step size of T/100 where, T is the period of one cycle (1/f). Use the below.

First, calculate t (not T) by using np.arange. Your start value will be 0, the stop value will be T (1 cycle), and the step will be as specified above. This will then provide the points of amplitude for the duration of 1 cycle.

Then calculate y = (sin(2pi*f*t)

Add an appropriate title, x-label, y-label, and legend to the graph. Plot only the first oscillation.

Your final graph should look like the graph below. Note the time scale is in ms.

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!