CS Assignment 4
CS Assignment 4
Assignment 4
Synthesis of periodic waveforms using Fourier series
a) Square Wave
∞
4 1
∑
π n=0 ( 2n+ 1 )
sin ( 2 n+1 ) x
b) Traingular Wave:
∞
8 1
2∑
cos ( 2 n+1 ) x
π n=0 ( 2 n+1 )2
c) Sawtooth Wave:
∞
2 n−1 1
∑
π n=1
( −1 )
n
sin nx
PART a)
1
Circuit Simulation Laboratory
n=10
n=100
n=1000
2
Circuit Simulation Laboratory
3
Circuit Simulation Laboratory
PART b)
n=10
n=50
4
Circuit Simulation Laboratory
n=100
n=1000
5
Circuit Simulation Laboratory
6
Circuit Simulation Laboratory
PART c)
n=10
n=50
7
Circuit Simulation Laboratory
8
Circuit Simulation Laboratory
n=100
n=1000
9
Circuit Simulation Laboratory
INFORMATION:
Tic:
Toc:
10
Circuit Simulation Laboratory
Gibbs phenomenon (Ringing) is the peculiar manner in which the Fourier series of
a piecewise continuously differentiable periodic function behaves at a jump discontinuity.
The nth partial sum of the Fourier series has large oscillations near the jump, which might
increase the maximum of the partial sum above that of the function itself. The overshoot does not
die out as n increases, but approaches a finite limit. This sort of behavior was also observed by
experimental physicists, but was believed to be due to imperfections in the measuring
apparatuses.
Solutions
In practice, the difficulties associated with the Gibbs phenomenon can be ameliorated by using a
smoother method of Fourier series summation, such as Fejér summation or Riesz summation,
or by using sigma-approximation. Using a continuous wavelet transform, the wavelet Gibbs
phenomenon never exceeds the Fourier Gibbs phenomenon. Also, using the discrete wavelet
transform with Haar basis functions, the Gibbs phenomenon does not occur at all in the case of
continuous data at jump discontinuities, and is minimal in the discrete case at large change
points. In wavelet analysis, this is commonly referred to as the Longo phenomenon.
11
Circuit Simulation Laboratory
Conclusion:-
Thus we used the Fourier analysis and implemented the different periodic signals using
MATLAB.
12