cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Fourier series example problem

SOLVED

Re: Fourier series example problem

image.pngimage.pngimage.pngimage.pngimage.png

Tags (1)

Re: Fourier series example problem

CornelBejan_0-1617534850777.png

CornelBejan_1-1617534859418.png

CornelBejan_2-1617534907429.png

The Nt seems to be the number of harmonics, if I am not misinterpreting it.
Why for the first harmonic Nt should be 2? 
Nt shouldn't it be 1 for the first harmonic?
The image above shows the first harmonic and for that Nt needs to be equal with 2.

Re: Fourier series example problem

Your sheet calculates the first two harmonics of the signal.

BUT, the Fourier sequence of a square wave only contains odd harmonics. So from the first 2 harmonics only the first is (and should be !) visible. The second harmonic is zero.

If you set Nt:=3 I suspect that you should see the result of first and third harmonics added.

 

Success!

Luc

Re: Fourier series example problem

I know that the square wave signal has only the odd harmonics, but the first harmonic is the first harmonic, and it is odd:).

 

CornelBejan_25-1617551415067.png

CornelBejan_26-1617551425658.png


CornelBejan_2-1617550824765.png

CornelBejan_1-1617550799829.png

 

CornelBejan_3-1617550854899.png

CornelBejan_4-1617550865915.png

 

CornelBejan_5-1617550887049.png

CornelBejan_6-1617550897102.png

 

CornelBejan_7-1617550909219.png

CornelBejan_8-1617550919758.png

 

CornelBejan_9-1617550931700.png

CornelBejan_10-1617550940749.png

 

CornelBejan_11-1617550956767.png

CornelBejan_12-1617550997721.png

CornelBejan_13-1617551014422.png

CornelBejan_14-1617551024567.png

 

CornelBejan_15-1617551053236.png

CornelBejan_16-1617551064982.png

 

CornelBejan_17-1617551076584.png

CornelBejan_18-1617551089837.png

 

CornelBejan_19-1617551102914.png

CornelBejan_20-1617551114228.png

 

CornelBejan_21-1617551125801.png

CornelBejan_22-1617551136160.png

 

CornelBejan_23-1617551151152.png

CornelBejan_24-1617551161422.png

 

CornelBejan_0-1617551684228.png

CornelBejan_1-1617551693556.png

 

CornelBejan_2-1617551711939.png

CornelBejan_3-1617551722501.png

 

What it's your opinion about this sequence?

Re: Fourier series example problem

My conclusion: There's a     2    missing in each of the sin()  and cos() arguments of the Fourier functions that you are using.

The correct function to create a sine of frequency F is not sin( pi * F * t)  but  sin(2 * pi * F * t).

Now your n has to step twice as much paces to run past all harmonics.

 

Success!

Luc

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."