Question: Write a Python script to plot waves of similar frequencies and their sum. a . Add a new feature: User - input values. input (

Write a Python script to plot waves of similar frequencies and their sum.
a. Add a new feature: User-input values.
input("enter first frequency in Hz: )
print("first frequency is:",f1)
f2= int(input("enter second frequency in Hz: )
print("second frequency is:",f2)
b. In your script, define your start and end times as tstart and tend and a time array.
#define functions to plot frequenciesc. Define two functions as y1=sin(2pif_(1)t) and y2=sin(2pif_(2)t)d. Define a new function y sum =y1+y2.e. Plot two similar frequencies and their sum, showing a "beating" pattern. (try, for example, f1=250,f2=257, tstart =-.1, tend =.1)f. Calculate the carrier and modulation frequencies for part c either by hand or in your program,g. Hand in your script (copy and paste into a word or pdf file), results, and your plots (image files or in a word or pdf file).
Write a Python script to plot waves of similar

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 Programming Questions!