Skip to main content
Werner_E
Werner_EAnswer
25-Diamond I
July 15, 2023

Before you try to plot a function, you should test the function for a couple of arguments

Werner_E_0-1689382975024.png

You function fails because of a division by zero for any argument you provide!

Reason is this:

Werner_E_1-1689383164349.png

 

The sum should start with i=1 and you have to deal separately with the signal's DC component if necessary.

Werner_E_4-1689383613836.png

 

You may also consider making n a second argument of the function f so you can compare the result of different number of summands

Werner_E_0-1689384832140.png

 

 

18 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
July 15, 2023

Before you try to plot a function, you should test the function for a couple of arguments

Werner_E_0-1689382975024.png

You function fails because of a division by zero for any argument you provide!

Reason is this:

Werner_E_1-1689383164349.png

 

The sum should start with i=1 and you have to deal separately with the signal's DC component if necessary.

Werner_E_4-1689383613836.png

 

You may also consider making n a second argument of the function f so you can compare the result of different number of summands

Werner_E_0-1689384832140.png

 

 

Translate
10-Marble
July 19, 2023

Thanks for the observation, I understood the help note on the software. Think is the professors article was with this exactly expression. So I had no ideia how to solve it, added to it I am still studying this kind of Fourier Series and Solving circuits problems. Last but not least, how can I make the f(t,1), f(t,5) and f(t,100)? I am new at this software.Captura de tela 2023-07-18 221403.png

Translate
ttokoro
21-Topaz I
July 19, 2023

image.pngimage.pngi starts from 1 as Werner note it.

Translate
t.t.
ttokoro
21-Topaz I
July 15, 2023
ttokoro
21-Topaz I
July 18, 2023

image.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.pngimage.png

Translate
t.t.
10-Marble
July 19, 2023

Hello guys, this is Joao de Sousa Luz. First of all, thank you very much for trying help me out. Thing is I could reproduce Werner_E results, altough I still didn't tried to make diferente values such as f(t,1) f(t,5) and f(t,100), but the f(t,1) worked very well. I will try over to this week, but ttkoro answer I couldn't make it, at least your last answer. I will upload my test in mathcad.

Translate