Gradient map of Fourier Series - Square Wave

The Fourier series used to create a square wave function Only harmonics 1ω,3ω,5ω  are used for the plot .By increasing the number of harmonics the wave become more like a square wave
f(t)=\frac{4}{\pi}[sin(2\pi f t)+\frac{1}{3}sin(6\pi f t)+\frac{1}{5}sin(10\pi f t)]
fig1:Square wave function from Fourier series
 The figure below (fig:2) the red spectral line indicates the crest and blue  shows the trough of the square wave And inside the red and blue line the fine lines shows the gradient map ; the harmonics So it is an excellent way to represent the superposition of waves
fig2: Matplotlib pcolor for the same Fourier transform as in fig1

Comments

Popular posts from this blog

Renewable Energy-Solar

Hyperbolic Paraboloid