magnitudeh.mws

syntfil[MagnitudeH]  - compute the magnitude of a filter transfer function

syntfil[MagnitudeHdB]  - compute the magnitude of a filter transfer function in dB

Calling sequence:

      MagnitudeH(h)

  MagnitudeHdB(h)

Parameters:

      h       - filter transfer function

Description:

Example:

>    with(syntfil):

`Syntfil version 1.53 loaded`

`You can set infolevel[syntfil] variable to 2..5 to get more detailed results!`

Definition of the transfer function

>    h:=1/(s^3+2*s^2+2*s+1);

h := 1/(s^3+2*s^2+2*s+1)

Magnitude function

>    MagnitudeH(h);

proc (omega) options operator, arrow; 1/((1+omega^6)^(1/2)) end proc

Magnitude function in dB

>    MagnitudeHdB(h);

proc (omega) options operator, arrow; -10*ln(1+omega^6)/ln(10) end proc

Magnitude frequency response

>    plot(MagnitudeH(h)(omega),omega=0..3,0..1);

[Maple Plot]

Magnitude frequency response in dB

>    plot(MagnitudeHdB(h)(omega),omega=0..3);

[Maple Plot]

See also:

MakeH, Butterworth, Chebyshev, InvChebyshev, InvChebyshevB, Cauer, CauerB, CauerC

PhaseH, GroupDelayH