Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

<< Graphics`Colors`

<< Graphics`ImplicitPlot`

<< Graphics`ContourPlot3D`

<< Graphics`PlotField`

<< Algebra`InequalitySolve`

<< Graphics`InequalityGraphics`

<< LinearAlgebra`MatrixManipulation`

<< LinearAlgebra`MatrixManipulation`

Needs"CurvesGraphics6`"

Sin2 p 4 f , f, - , 2 p, PlotRange Æ All,


20 1 1 1 p
Plot Sin2 p 1 f - Sin2 p 2 f + Sin2 p 3 f -
p 2 3 3 8

Ticks Æ 0, , p, p, p, 2 p, Automatic, GridLines Æ Range0, p, , Range-10, 15, 2,


p p 3 p 3 9 p
, ,
8 4 2 4 2 4 8
AxesLabel Æ f, Sinf, LabelStyle Æ DirectiveRed, Bold, Italic, PlotLabel Æ "Sawtooth Waveform"

Sawtooth Waveform
sinf 

10

f
p p p 3p 3p
p 2p
8 4 2 4 2

-5

- 10
2 Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp

Sin2 p 4 f , f, - , 2 p, PlotRange Æ All,


20 1 1 1 p
Plot Sin2 p 1 f - Sin2 p 2 f + Sin2 p 3 f -
p 2 3 3 8

Ticks Æ 0, , , , p, p, p, 2 p, Automatic, GridLines Æ Range0, p, , Range-10, 15, 2,


p 3 p 3 p 9 p

8 4 2 4 2 4 8
AxesLabel Æ f, Sinf, LabelStyle Æ DirectiveRed, Bold, Italic, PlotLabel Æ "Sawtooth Waveform"

sinf 
Sawtooth Waveform

10

f
p p p 3p 3p
4
p 2
2p
8 4 2

-5

- 10
Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp 3

20 1 1 1 1 1 1 1
Plot Sin 1 f - Sin 2 f + Sin 3 f - Sin 4 f + Sin 5 f - Sin 6 f + Sin 7 f - Sin 8 f +
p 2 3 4 5 6 7 8

Sin 15 f , f, - , 2 p,


1 1 1 1 1 1 1 p
Sin 9 f - Sin 10 f + Sin 11 f - Sin 12 f + Sin 13 f - Sin 14 f +
9 10 11 12 13 14 15 8

PlotRange Æ All, Ticks Æ 0, , , , p, p, p, 2 p, Automatic, GridLines Æ Range0, p, , Range-10, 20, 2,
p 3 3 p p 9 p

8 4 2 4 2 4 8
AxesLabel Æ f, Sinf, LabelStyle Æ DirectiveRed, Bold, Italic,
PlotLabel Æ "Sawtooth Waveform with Fundamental + 15 Harmonics"

Sawtooth Waveform with Fundamental + 15 Harmonics


sinf 

10

f
p p p 3p 3p
4
p 2
2p
8 4 2

-5

- 10

4 Sin 2 k - 1 2 p f t 

p k =1 2 k - 1

2  ArcTanh2  f  t   ArcTanh2  f  t 
1

4 Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp

Sin18 p ft , ft, 0, ,


4 1 1 1 1 2p
Plot Sin2 p ft + Sin6 p ft + Sin10 p ft + Sin14 p ft +
p 3 5 7 9 2p

Ticks Æ 0, , p, p, p, 2 p, Automatic, GridLines Æ Range0, , Range-1.0, 2.0, 0.2,


p p 6 p 3 9 p
, , p,
16 8 4 8 2 4 32

AxesLabel Æ 2 p f, " 
4 • Sin2 k - 1 2 p f t

2 k - 1
", LabelStyle Æ DirectiveBrown, Bold, Italic,
p k=1

PlotLabel Æ "Square Waveform = Fundamental + Odd Harmonics 3 to 7"

Square Waveform = Fundamental + Odd Harmonics 3 to 7



4 • Sin2 k - 1 2 p f t

p k= 1 2 k - 1

1.0

0.5

2p f
p p p
16 8 4

- 0.5

- 1.0

Sin 2 k - 1 2 p ft 
, ft, 0, 1
4 2

2 k - 1
Plot
p k =1
Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp 5

1.0

0.5

0.2 0.4 0.6 0.8 1.0

-0.5

-1.0
6 Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp

Sin 2 k - 1 2 p ft 
, ft, 0, 1,
4 n

2 k - 1
ManipulatePlot
p k =1

Ticks  0, , 2 , Automatic, GridLines  Range0, , Range 1.0, 2.0, 0.2,
   6 3 9 
, , , , , ,
16 8 4 8 2 4 32

AxesLabel  2  f, " 
4  Sin2 k  1 2  f t
2 k  1
", LabelStyle  DirectiveBrown, Bold, Italic,
 k1

PlotLabel  "Square Waveform  Fundamental  Odd Harmonics 3 to 50", n, 1, 50, 1

Square Waveform = Fundamental + Odd Harmonics 3 to 50



4 • Sin2 k - 1 2 p f t

p k= 1 2 k - 1

1.0

0.5

2p f
p p p
16 8 4
- 0.5

- 1.0
Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp 7

Sin 2 p k ft 
, ft, 0, 1,
2 n
ManipulatePlot 
p k =1 k

Ticks  0, , 2 , Automatic, GridLines  Range0, , Range 1.0, 2.0, 0.2,
   6 3 9 
, , , , , ,
16 8 4 8 2 4 32
Sin 2 p k ft 
AxesLabel  2  f, "
2 n
 ", LabelStyle  DirectiveBrown, Bold, Italic,
p k =1 k

PlotLabel  "Sawtooth Waveform  Fundamental  Odd & Even Harmonics 3 to 50", n, 1, 50, 1

ooth Waveform = Fundamental + Odd & Even Harmonics 3


2 n Sin 2 p k ft 

p k =1 k

0.5

2p f
p p p
16 8 4

- 0.5
8 Triangular,+Sawtooth+and+SquareWave+Demonstrator_2.nbp

-Sin 2 k - 1 2 p ft 
 -1 , ft, 0, 1, Ticks  0,
8 n
   6 3
k

2 k - 12
ManipulatePlot , , , , , , 2 , Automatic,
p2 k =0
16 8 4 8 2

Sin 2 k - 1 2 p ft 
GridLines  Range0, , Range 2.0, 2.0, 0.2, AxesLabel  2  f, "  -1
9  8 •
k

2 k - 12
, ",
4 32 p 2 k =0
LabelStyle  DirectiveBrown, Bold, Italic, PlotLabel  "Sawtooth Waveform  Fundamental  Odd", n, 1, 50, 1

Sawtooth Waveform = Fundamental + Odd


8 Sin 2 k - 1 2 p ft 
 -1

k

p2 k =0 2 k - 1 2

1.5
1.0
0.5
2p f
p p p
- 0.5 16 8 4

- 1.0
- 1.5

You might also like