beautypg.com

Fourier series for a square wave, Fourier series for a square wave ,16-38 – HP 50g Graphing Calculator User Manual

Page 515

background image

Page 16-38

From the plot it is very difficult to distinguish the original function from the
Fourier series approximation. Using k = 2, or 5 terms in the series, shows not so
good a fitting:

The Fourier series can be used to generate a periodic triangular wave (or saw
tooth wave) by changing the horizontal axis range, for example, from –2 to 4.
The graph shown below uses k = 5:

Fourier series for a square wave

A square wave can be generated by using the function

⎪⎩

<

<

<

<

<

<

=

4

3

,

0

3

1

,

1

1

0

,

0

)

(

x

if

x

if

x

if

x

g