Magnitude Magnitude Magnitude 1.0 0.5 0.0- -0.5 -1.0 1.0 0.5 0.0 -0.5 8. Write a python...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Magnitude Magnitude Magnitude 1.0 0.5 0.0- -0.5 -1.0 1.0 0.5 0.0 -0.5 8. Write a python program that plot the fundamental hormonic and the 2nd, 3rd, 4th, 5th, 6th, 7th, 8th and 9th harmonic of the problem 7. Hint: Start with the program from #7 and modify it by adding a loop to produce the harmonics. Your final graph should be look like the figure below. Figure size = (16,8): Fundamental harmonic f = 60 Hz 1.0 f=60 Hz Magnitude 0.5- 0.0- -0.5 2nd harmonic 3rd harmonic 1.0 f 180 Hz f 120 Hz Magnitude -1.0 -1.0 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 Time in msec 7.5 10.0 Time in msec 12.5 15.0 17.5 0.0 2.5 5.0 4th harmonic 5th harmonic 1.0 1.0 f = 240 Hz f 300 Hz 0.5- 0.5- -1.0 0.0 2.5 5.0 0.0- -0.5 0.5- 0.0 -0.5 M 7.5 10.0 12.5 15.0 17.5 Time in msec 0.0- -0.5 6th harmonic f=360 Hz -1.0 -1.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 Time in msec Time in msec 7.5 Time in msec 10.0 12.5 15.0 17.5 7th harmonic 1.0 f = 420 Hz 8th harmonic 9th harmonic 1.0 f = 480 Hz f = 540 Hz 1.0 0.5 0.0 -0.5 www. -1.0 0.0 2.5 5.0 7.5 Time in msec Magnitude 0.5- 0.0 -0.5 Magnitude 0.5- 0.0 -0.5- -1.0 -1.0 10.0 12.5 15.0 17.5 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 7.5 100 10.0 12.5 15.0 17.5 Time in msec Time in msec import matplotlib.pyplot as plt import pandas as pd import numpy as np df = pd.read_csv('data.csv') f = 60 T = 1 / f t = np.arange(0, T, T/100) y = np.sin(2* np.pi * f * t) plt.plot(t 1000, y) plt.title("Sinusoidal Function") plt.xlabel("Time (ms)") plt.ylabel("Magnitude") pot.legend (['f=60Hz']) plt.show() Magnitude Magnitude Magnitude 1.0 0.5 0.0- -0.5 -1.0 1.0 0.5 0.0 -0.5 8. Write a python program that plot the fundamental hormonic and the 2nd, 3rd, 4th, 5th, 6th, 7th, 8th and 9th harmonic of the problem 7. Hint: Start with the program from #7 and modify it by adding a loop to produce the harmonics. Your final graph should be look like the figure below. Figure size = (16,8): Fundamental harmonic f = 60 Hz 1.0 f=60 Hz Magnitude 0.5- 0.0- -0.5 2nd harmonic 3rd harmonic 1.0 f 180 Hz f 120 Hz Magnitude -1.0 -1.0 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 Time in msec 7.5 10.0 Time in msec 12.5 15.0 17.5 0.0 2.5 5.0 4th harmonic 5th harmonic 1.0 1.0 f = 240 Hz f 300 Hz 0.5- 0.5- -1.0 0.0 2.5 5.0 0.0- -0.5 0.5- 0.0 -0.5 M 7.5 10.0 12.5 15.0 17.5 Time in msec 0.0- -0.5 6th harmonic f=360 Hz -1.0 -1.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 Time in msec Time in msec 7.5 Time in msec 10.0 12.5 15.0 17.5 7th harmonic 1.0 f = 420 Hz 8th harmonic 9th harmonic 1.0 f = 480 Hz f = 540 Hz 1.0 0.5 0.0 -0.5 www. -1.0 0.0 2.5 5.0 7.5 Time in msec Magnitude 0.5- 0.0 -0.5 Magnitude 0.5- 0.0 -0.5- -1.0 -1.0 10.0 12.5 15.0 17.5 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 0.0 2.5 5.0 7.5 100 10.0 12.5 15.0 17.5 Time in msec Time in msec import matplotlib.pyplot as plt import pandas as pd import numpy as np df = pd.read_csv('data.csv') f = 60 T = 1 / f t = np.arange(0, T, T/100) y = np.sin(2* np.pi * f * t) plt.plot(t 1000, y) plt.title("Sinusoidal Function") plt.xlabel("Time (ms)") plt.ylabel("Magnitude") pot.legend (['f=60Hz']) plt.show()
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Shelby Company has an available production capacity of 180,000 hours. This can be used to produce 3 products in any combination. The total fixed cost is 180,000. Other information is as follows: X Y...
-
Draw a structural formula for each of the following compounds. (Several formulas may be possible in each case.) An alcohol with the molecular formula C5H10O
-
The following data consists of the lengths in mm of cuckoo's eggs found in nests belonging to the dunnock and to the reed warbler: Investigate the difference between these lengths without making any...
-
A \(30.5-\mu F\) parallel-plate capacitor initially has air between its plates and is connected to a \(24.0-\mathrm{V}\) battery. The capacitor is then submerged in distilled water. What is the...
-
Mario Automobile Company leases automobiles under the following terms. A 3-year lease agreement is signed in which the lessor receives annual rental of $4,000 (in advance). At the end of the three...
-
n 1 1. lim tantan is equal to 004-1 1+r+r2 2. 3. If the least and the largest real values of a, for which the equation z + a |2-1+21=0(z=C and i=1) has a solution, are p and q respectively, then 4(p...
-
What is the form of the moment of inertia tensor [Idisk] of the disk with respect to point O in the shown reference frame with basis {e,e2, e3}? Assume that A B C and A, B, C 0. (6 points) (a)...
-
Reacquaint yourself with ScriptPad. Imagine that ScriptPads founders are writing an operating manual that describes the administrative processes theyll use in running their business. Theyd like to...
-
Devver (pronounced like developer, not devious) launched in 2008 to help software developers use cloud-based services to test their code in a more expedient manner than current practices. The firm...
-
Suppose you were asked by the founders of Nila LED, the subject of the You Be the VC 8.1 feature, to advise them on protecting their trade secrets. Assume the company operates out of a single...
-
Karen Jenkins has a good job working for the city of Rapid City, South Dakota, but is weary of 2 percent (or less) per year pay raises. Because she has read magazine articles about young...
-
Select one of the following large firms: Cessna Aircraft Company, Tempur-Pedic, or Corning Incorporated. Familiarize yourself with the company. Assess how entrepreneurial the firm is, based on the...
-
Fill in the blanks in the following table: Units of Labor 1 2 3 4 5 Total Product 40 138 210 Average Product 40 46 44 35 29 Marginal Product 40 48 90 24 186 -27
-
Which, if any, of the dichloroethene molecules drawn in Data Table II (3.) (4.) and (5.) are geometric isomers? A. B. C. D. cis-1,2-dichloroethene and trans-1,2-dichloroethene...
-
Bethany, who weighs 560 N, lies in a hammock suspended by ropes tied to two trees. One rope makes an angle of 45 with the ground; the other makes an angle of 30. Find the tension in each of the ropes.
-
In the Skycoaster amusement park ride, riders are suspended from a tower by a long cable. A second cable then lifts them until they reach the starting position indicated in Figure P5.3. The lifting...
-
In the winter sport of curling, two teams alternate sliding 20 kg stones on an icy surface in an attempt to end up with the stone closest to the center of a target painted on the ice. During one...
Study smarter with the SolutionInn App