{VERSION 5 0 "IBM INTEL NT" "5.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{CSTYLE "" -1 256 "" 1 18 0 0 0 0 0 1 0 0 0 0 0 0 0 0 } {CSTYLE "" -1 257 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{PSTYLE "Normal " -1 0 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Normal" -1 256 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }3 1 0 0 0 0 1 0 1 0 2 2 0 1 }} {SECT 0 {EXCHG {PARA 256 "" 0 "" {TEXT 256 50 "Animation of the Fourie r Analysis of a Square Wave" }}{PARA 0 "" 0 "" {TEXT -1 76 " The fuc tion to study is F(t) = \{ -1/2 if -1 " 0 "" {MPLTEXT 1 0 21 "restart; with(plots):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 74 "m:=40: # Number of terms to keep (this will be the non-zero coe fficients)" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 42 "mycoeffs := s eq( (2/((2*n-1)*Pi)),n=1..m);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 87 "myseq := seq( (2/((2*n-1)*Pi))*sin((2*n-1)*Pi*x),n=1..m): # (2 n-1) selects only odd n" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 47 " myseqsum := seq(sum(myseq[nn],nn=1..n),n=1..m):" }}}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 154 "display(seq(plot(myseqsum[i], x=-0.2..2.2,col or=blue, thickness=2),i=1..m), insequence=true, title=`Evolut ion of Fourier series to Square Wave`);" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 79 " \+ " }{TEXT 257 67 " Note the \"ringing\" in the c orners of the picture as it evolves!!!" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 60 "myseq2 := seq(myseq[n],n=1..m): # just the individua l terms" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 176 "display(seq(plo t(myseq2[i], x=-0.2..2.2,color=blue, thickness=2),i=1..m), insequence= true, title=`Individual terms of the Fourier series solution \+ to the Square Wave`);" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" } }}}{MARK "11" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }