Iam triying to plot summatory of the next function:
(e^(i*n*t*wo)*Sin[n*Pi/2])/(n*pi)
I have no problem plotting a trigonometric fourier serie, so the only problem is plotting the complex i. I have watched several videos where they use an uppercase I instead of an lowercase i, I have already tried that but with no results. The functions that I use are:
s[i_,t_] := 1/2 + Sum[(e^(i*n*t*wo)*Sin[n*Pi/2])/(n*pi),{n,-i,-1}] + Sum[(e^(i*n*t*wo)*Sin[n*Pi/2])/(n*pi),{n,1,i}]
Plot[s[10],{t,-10,10}]
First I made a declaration of a function where the summatories are declared, the i in the Plot[] function is the number of iterations.
I offer an apologize my english is not the best one and I dont know how to make the ecuation look pretty. Anyway thanks a lot.
Re[]
orIm[]
to see the individual parts inPlot[]
, or useReIm[]
in conjunction withParametricPlot[]
. Also, the exponential constant isE
(capitalization matters!) and the exponential function isExp[]
. $\endgroup$Exp
, then also search for examples here. See this Q&A or this one, for instance. Your definition is incorrect becauses
uses two arguments but you inPlot
you're calling it with just one. $\endgroup$