Sie sind auf Seite 1von 2

The half wave rectifier

The half wave rectifier is an electronic circuit which allows current to pass in only one direction.In the
following problem the half wave rectifier is given as a piecewise function. Using Fourier series l will
show that the output will only be defined on the positive y-axis.
x[t_] := Piecewise[{{Sin[t], 0 < t < π}, {0, - π < t < 0}}]

Ao is calculated below

x[t]
In[6]:= Integrate , {t, - π, π}

Out[6]=
1
π

Calculation of An

x[t] Cos[n t]
In[7]:= Integrate , {t, - π, π}
π
- 1 - Cos[n π]
- 1 + n2  π

Calculation of Bn

x[t] Sin[n t]
In[8]:= Integrate , {t, - π, π}
π
Sin[n π]
-
- 1 + n2  π

In[12]:= curve10 = FourierSeries[x[t], t, 10] // ComplexExpand

Out[12]=
1 - 2 Cos[2 t] - 2 Cos[4 t] - 2 Cos[6 t] - 2 Cos[8 t] - 2 Cos[10 t] + Sin[t]
π 3π 15 π 35 π 63 π 99 π 2

In[13]:= curve5 = ComplexExpand[FourierSeries[x[t], t, 5]]

Out[13]=
1 - 2 Cos[2 t] - 2 Cos[4 t] + Sin[t]
π 3π 15 π 2
2

In[14]:=

Plot[{x[t], curve5}, {t, - 2 π, 2 π}]


1.0

0.8

0.6

Out[14]=

0.4

0.2

-6 -4 -2 2 4 6

In[15]:= Plot[ {x[t], curve10}, {t, - 2 π, 2 π}]

1.0

0.8

0.6

Out[15]=

0.4

0.2

-6 -4 -2 2 4 6

As clearly shown from the two outputs above the range of the function is for all values greater than
zero.This is what a half wave rectifier circuit does.It clips all negative values thus allowing current to
move in only one direction

π b
Integrate:  x[t] dt cannot be interpreted. Integrals are entered in the form f ⅆ x,  f ⅆ x, or  f, where ⅆ is entered as
-π a
vars∈region

dd.

Das könnte Ihnen auch gefallen