Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

1.

) Fundamental frequency=2005 Hz
Overtone 1=4010 Hz
Overtone 2=6015 Hz

Eqn 1f(x)=sin(2π*2005*x+ π/2)


Eqn 2f(x)=2(sin(2π*4010*x))
Eqn 3f(x)=3(sin(2π*6015*x + π))

Python script:
import numpy as np
import matplotlib.pyplot as plt
Time=np.arange(0, 1,0.001)
x=1*(np.sin(2*np.pi*2005*Time + np.pi/2))
y=2*(np.sin(2*np.pi*4010*Time))
z=3*(np.sin(2*np.pi*6015*Time + np.pi))

fig,ax=plt.subplots(2,2, figsize=(7,10))

ax[0,0].plot(Time,x)
ax[0,0].set_xlabel("Time")
ax[0,0].set_ylabel("Amplitude")
ax[0,0].set_title("Frequency 2005 Hz")

ax[0,1].plot(Time,y)
ax[0,1].set_xlabel("Time")
ax[0,1].set_ylabel("Amplitude")
ax[0,1].set_title("Frequency 4010 Hz")

ax[1,0].plot(Time,z)
ax[1,0].set_xlabel("Time")
ax[1,0].set_ylabel("Amplitude")
ax[1,0].set_title("Frequency 6015 Hz")

Result=x+y+z

ax[1,1].plot(Time,Result, label='sin(x)')
ax[1,1].set_xlabel("Time")
ax[1,1].set_ylabel("Amplitude")
ax[1,1].set_title("Resultant")

plt.subplots_adjust(wspace=.5,hspace=0.3) 
2.) Frequency= 1003 Hz (Half of my reg no:2005)

Sawtooth Wave:

 Frequency n multiples of fundamental frequencies(n=1,2,3…)


 Amplitude Decreases in harmonic progression(1,1/2,1/3..)

Square wave:

 Amplitudes of all the even harmonics is zero.


 Square waves are equivalent to a sine wave at the same fundamental frequency
added to an infinite series of odd-multiple sine-wave harmonics at decreasing
amplitudes which diminish by (1/odd-multiple).
Triangle Wave:

 Amplitudes of all even harmonics is zero.


 Amplitude decreases inversely proportional to the square of the odd multiple,
for every odd multiple of fundamental frequency.
3.) The Fast Fourier Transform function( fft() ) in Python can be used to analyze
Fourier transform of a time domain signal.

Syntax:
X=fft(A [,sign] [,option])
X=fft(A,sign,selection [,option])
X=fft(A,sign,dims,incr [,option] )

 A fast Fourier transform (FFT) is an algorithm that calculates the discrete Fourier
transform (DFT) of some sequence – the discrete Fourier transform is a tool to
convert specific types of sequences of functions into other types of representations.
 Another way to explain discrete Fourier transform is that it transforms the structure of
the cycle of a waveform into sine components.

Applications.
 The FFT is used in digital recording, sampling, additive synthesis and pitch
correction software.
 One important application is for the analysis of sound. It is important to assess the
frequency distribution of the power in a sound because the human ear exercises that
capacity in the hearing process.

You might also like