CHAPTER08:FILTER

Example E01 : Pg 510

In [1]:
                # EXAMPLE  8-1      PG N0-510
import math,cmath
L=0.02;                # INDUCTANCE
C=4.*10.** -6.;             # CAPACITOR
Z=200.;
Fc=1./(math.pi*(L*C)** 0.5);
Z0=(L/C)** 0.5;
Z1=(1j*2)*math.pi*Z*L;
Z2=1./(1j*2*math.pi*Z*C);
Z0=(4*Z1*Z2*Z2)/(Z1+4*Z2)**0.5
F1=2000.;
Z11=1j*math.pi*F1*L;
Z22=1./(1j*math.pi*F1*C);
Z01=(4.*Z11*Z22*Z22)/(Z1+4.*Z22)** 0.5;
print 'i) POWER (Pmax) is    =  ',Z1,'  W '
print 'ii) POWER (Pmax) is    =  ',Z2,'  W '
print 'iii) POWER (Pmax) is    =  ',Z0,'  W'
print 'iii) POWER (Pmax) is    =  ',Z11,'  W '
print 'iv) POWER (Pmax) is    =  ',Z22,'  W '
print 'v) POWER (Pmax) is    =  ',Z01,'  W '
i) POWER (Pmax) is    =   25.1327412287j   W 
ii) POWER (Pmax) is    =   -198.943678865j   W 
iii) POWER (Pmax) is    =   (101348.847063-101348.847063j)   W
iii) POWER (Pmax) is    =   125.663706144j   W 
iv) POWER (Pmax) is    =   -39.788735773j   W 
v) POWER (Pmax) is    =   (48605.6509501-48605.6509501j)   W 

Example E02 : Pg 511

In [2]:
          # example 8-2   pg no -511
import math
Ro=600.;
Fc=940.;
L=Ro/(math.pi*Fc);
C=1./(math.pi*Ro*Fc);
print '%s %.2f %s' %('i) INDUCTANCE (L) is    =  ',L,'  H ')
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
i) INDUCTANCE (L) is    =   0.20   H 
ii) CAPACITOR (C) is    =   5.64e-07   F 

Example E03 : Pg 511

In [3]:
import math 
L=0.015;                # INDUCTANCE
C=0.5*10.** -6.;             # CAPACITOR
Z=200.;
Fc=1./(4.*math.pi*(L*C)** 0.5);
Z0=(L/C)** 0.5;
Z2=(1j*2)*math.pi*Z*L;
Z1=1./(1j*2.*math.pi*Z*C);
F1=2000.;
Z01=(Z1*Z2)/(1.+(Z1/(4.*Z2)))** 0.5;
A=8.147;
print 'ii) Impedance (ZO) is    =  ',Z0,'  W '
print 'ii) FREQUENCY is    =  ',Fc,'  HZ '
print 'ii) Impedance(Z1) is    = ',Z1, '  W '
print 'ii) Impedance(Z2) is    = ',Z2,'  W '
print 'ii) Impedance(Z01) is    = ',Z01,'  W '
print 'ii) ALPHA is    =  ',A
ii) Impedance (ZO) is    =   173.205080757   W 
ii) FREQUENCY is    =   918.88149237   HZ 
ii) Impedance(Z1) is    =  -1591.54943092j   W 
ii) Impedance(Z2) is    =  18.8495559215j   W 
ii) Impedance(Z01) is    =  (4.09648538668e-13-6690.06833567j)   W 
ii) ALPHA is    =   8.147

Example E04 : Pg 514

In [4]:
                # EXAMPLE -8-4   PG NO-514-515
import math 
Ro=3000.;
Fc=2000.;
L=Ro/(4.*math.pi*Fc);
C=1./(4.*math.pi*Fc*Ro);
print '%s %.2f %s' %('i) INDUCTANCE (L) is    =  ',L,'  H ')
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'F ')
i) INDUCTANCE (L) is    =   0.12   H 
ii) CAPACITOR (C) is    =   1.33e-08 F 

Example E05 : Pg 517

In [5]:
                 # EXAMPLE 8-5   PG NO-517
C1=1.;
C2=50.;
X=1000.;              # X=1/(2*math.pi*(L1*C1)**0.5)
Y=X*2.*(C1/C2)**0.5;            # Y=(Fc2-Fc1)
print '%s %.2f %s' %('ii) Frequency (Fc2-Fc1) is    =  ',Y,'  Hz ')
ii) Frequency (Fc2-Fc1) is    =   282.84   Hz 

Example E06 : Pg 519

In [6]:
                       # EXAMPLE 8-7  PG NO-519
import math 
Ro=100.;
Fc2=5000.;
Fc1=500.;
L1=Ro/(2.*math.pi*(Fc2-Fc1));
print '%s %.2e %s' %('ii) INDUCTANCE (L1/2) is    =  ',L1/2.,'  H ')
C1=(Fc2-Fc1)/(2.*math.pi*Ro*Fc1*Fc2)
print '%s %.2e %s' %('ii) CAPACITOR (2*C1) is    =  ',2.*C1,'  F ')
L2=(Ro*(Fc2-Fc1))/(4.*math.pi*Fc1*Fc2);
print '%s %.2f %s' %('ii) INDUCTANCE (L2) is    =  ',L2,'  H ')
C2=1./(math.pi*(Fc2-Fc1));
print '%s %.2e %s' %('ii) CAPACITOR (C2) is    =  ',C2,'  F ')
ii) INDUCTANCE (L1/2) is    =   1.77e-03   H 
ii) CAPACITOR (2*C1) is    =   5.73e-06   F 
ii) INDUCTANCE (L2) is    =   0.01   H 
ii) CAPACITOR (C2) is    =   7.07e-05   F 

Example E07 : Pg 519

In [7]:
              # EXAMPLE 8-7   PG NO-519
import math 
Fc1=1000.;
Fc2=3000.;
Ro=100.;
L1=((Ro*(Fc2-Fc1))/(2.*math.pi*Fc2*Fc1))
print '%s %.2f %s' %('i) INDUCTANCE (L1/2) is    =  ',L1,'  H ')
C1=1./(2.*math.pi*(Fc2-Fc1));
print '%s %.2e %s' %('ii) CAPACITOR (C1) is    =  ',C1,'  F ')
L2=Ro/(4.*math.pi*(Fc2-Fc1));
print '%s %.2e %s' %('iii) INDUCTANCE (L2) is    =  ',L2,'  H ')
C2=(Fc2-Fc1)/(math.pi*Ro*Fc1*Fc2)
print '%s %.2e %s' %('ii) CAPACITOR (C2) is    =  ',C2,'  F ')
i) INDUCTANCE (L1/2) is    =   0.01   H 
ii) CAPACITOR (C1) is    =   7.96e-05   F 
iii) INDUCTANCE (L2) is    =   3.98e-03   H 
ii) CAPACITOR (C2) is    =   2.12e-06   F 

Example E08 : Pg 523

In [8]:
              #  EXAMPLE 8-8   PG NO-523
import math 
Ro=600.;
Fc=2500.;
L=Ro/(math.pi*Fc);
C=1./(math.pi*Ro*Fc);
print '%s %.2f %s' %('i) INDUCTANCE (L) is    =  ',L,'  H ')
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
Fo=2600.;
m=math.sqrt(1.-(Fc/Fo)**2.)
print '%s %.2f' %('iii)  (m) is    =  ',m)
L1=((1.-m*m)/4.*m)*L;
print '%s %.2e %s' %('iv) INDUCTANCE (L1) is    =  ',L1,'  H ')
L2=0.5*m*L;
print '%s %.2f %s' %('ii) INDUCTANCE (L2) is    =  ',L2,'  H ')
C1=m*C;
print '%s %.2e %s' %('ii) CAPACITOR (C1) is    =  ',C1,'  F ')
i) INDUCTANCE (L) is    =   0.08   H 
ii) CAPACITOR (C) is    =   2.12e-07   F 
iii)  (m) is    =   0.27
iv) INDUCTANCE (L1) is    =   4.85e-03   H 
ii) INDUCTANCE (L2) is    =   0.01   H 
ii) CAPACITOR (C1) is    =   5.83e-08   F 

Example E09 : Pg 525

In [9]:
                 # EXAMPLE 8-9       PG NO-525
import math 
Ro=600.;
Fc=3000.;
L=Ro/(4.*math.pi*Fc);
print '%s %.2f %s' %('i) INDUCTANCE (L) is    =  ',L,'  H ')
C=1./(4.*math.pi*Fc*Ro);
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
Fo=2700.;
m=math.sqrt(1.-(Fo/Fc)**2.);
print '%s %.2f %s' %('iii)  (m) is    =  ',m,'   ');
X=(2.*C)/m;
print '%s %.2e %s' %('iv) X (X) is    =  ',X,' F  ');
Y=L/m;
print '%s %.2f %s' %('v) Y    is    =  ',Y,' H  ');
Z=(4.*m*C)/(1-m**2);                               # Z=4mC/1-m**2
print '%s %.2e %s' %('vi) Z   (Z) is    =  ',Z,'  F ');
Z1=(4.*m*L)/(1-m**2);                   # Z1=4mL/1-m**2
print '%s %.2f %s' %('vii)  (Z1) is    =  ',Z1,' H  ')
X1=(2.*L)/m;
print '%s %.2f %s' %('viii)  X1    (X1) is    =  ',X1,' H  ')
Y1=C/m;
print '%s %.2e %s' %('ix) Y1  is    =  ',Y1,' F  ')
i) INDUCTANCE (L) is    =   0.02   H 
ii) CAPACITOR (C) is    =   4.42e-08   F 
iii)  (m) is    =   0.44    
iv) X (X) is    =   2.03e-07  F  
v) Y    is    =   0.04  H  
vi) Z   (Z) is    =   9.52e-08   F 
vii)  (Z1) is    =   0.03  H  
viii)  X1    (X1) is    =   0.07  H  
ix) Y1  is    =   1.01e-07  F  

Example E10 : Pg 529

In [10]:
    # EXAMPLE  8-10               PG NO- 529
import math
Ro=100.;
Fc=1000.;
L=Ro/Fc*math.pi;
print '%s %.2f %s' %('i) INDUCTANCE (L) is    =  ',L,'  H ')
C=1./(math.pi*Ro*Fc)
print '%s %.2f %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
i) INDUCTANCE (L) is    =   0.31   H 
ii) CAPACITOR (C) is    =   0.00   F 

Example E11 : Pg 529

In [11]:
            # EXAMPLE  8-11     PG NO-529-530
import math 
Ro=500.;
Fc=1000.;
L=Ro/(math.pi*Fc);
print '%s %.2f %s' %('ii) INDUCTANCE (L) is    =  ',L,'  H ')
C=1/(math.pi*Ro*Fc);
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
ii) INDUCTANCE (L) is    =   0.16   H 
ii) CAPACITOR (C) is    =   6.37e-07   F 

Example E12 : Pg 530

In [12]:
# EXAMPLE 8-12   PG NO-530
import math 
Fc=1000.;
C=0.05*10.** -6.;
L=1/(math.pi*math.pi*Fc*Fc*C)
print '%s %.2f %s' %('i) INDUCTANCE (L) is =',L,'  H ')
i) INDUCTANCE (L) is = 2.03   H 

Example E13 : Pg 530

In [13]:
              # EXAMPLE 8-13      PG NO-530
import math
Fc=2000.;
L=0.05;
C=1./(16.*math.pi*math.pi*Fc*Fc*L)
print '%s %.2e %s' %('i) CAPACITOR (C) is    =  ',C,'  F ')
i) CAPACITOR (C) is    =   3.17e-08   F 

Example E14 : Pg 530

In [14]:
         # EXAMPLE 8-14   PG NO-530
import math 
Ro=600.;
Fc=20000.;
L=Ro/(4.*math.pi*Fc);
C=1./(4.*math.pi*Ro*Fc);
print '%s %.2e %s' %('i) INDUCTANCE (L) is    =  ',L,'  H ')
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
i) INDUCTANCE (L) is    =   2.39e-03   H 
ii) CAPACITOR (C) is    =   6.63e-09   F 

Example E15 : Pg 531

In [15]:
                # EXAMPLE 8-15   PG NO-531
import math
L=50.*10.** -3.;
C=0.2*10.** -6.;
Ro=(L/C)** 0.5;
Fc=1./math.pi*(L*C)** 0.5;
print '%s %.2f %s' %('i) RESISTANCE (Ro) is    =  ',Ro,'  ohm ')
print '%s %.2e %s' %('ii) FREQUENCY (Fc) is    =  ',Fc,'  Hz ')
i) RESISTANCE (Ro) is    =   500.00   ohm 
ii) FREQUENCY (Fc) is    =   3.18e-05   Hz 

Example E16 : Pg 531

In [16]:
                   # EXAMPLE 8-16   PG NO-531
import math
C=0.2*10.** -6.;
L=50.*10.** -3.;
Ro=(L/C)** 0.5;
Fc=1./4.*math.pi*(L*C);
print '%s %.2f %s' %('Hi) RESISTANCE (Ro) is    =  ',Ro,'  ohm ')
print '%s %.2e %s' %('Hi) FREQUENCY (Fc) is    =  ',Fc,'  Hz ')
Hi) RESISTANCE (Ro) is    =   500.00   ohm 
Hi) FREQUENCY (Fc) is    =   7.85e-09   Hz 

Example E17 : Pg 533

In [17]:
                                  # EXAMPLE 8-18         PG NO-533-534 
Z1=1j*413.05;                      # Impedance
Z2=1j*334.45;                      # Impedance
Zoc=(Z1/2)-Z2;
print 'i)   Impedance(Zoc) is    =  ',Zoc,' ohm  '
Zsc=(Z1/2)+((Z1*-Z2)/2)/(-Z2+(Z1/2));
print 'ii)  Impedance (Zsc) is    =  ',Zsc,' ohm  '
Zo=(Zoc*Zsc)** 0.5;
print 'ii)  Impedance (Zo) is    =  ',Zo,' ohm  '
i)   Impedance(Zoc) is    =   -127.925j  ohm  
ii)  Impedance (Zsc) is    =   746.468609537j  ohm  
ii)  Impedance (Zo) is    =   (309.017793784+0j)  ohm  

Example E18 : Pg 533

In [18]:
              # EXAMPLE 8-18   PG NO-533
import math
Ro=600.;
Fc=1000.;
L1=Ro/(math.pi*Fc);
C2=1./(math.pi*Ro*Fc);
Fo=1050.;
m=1.-(Fc/Fo)** 0.5;
X=(0.5*m*L1);
Y=(1.-m*m)/4.*m*L1;
Z=m*C2;
A=(m*L1)/2.;
B=(1-m*m)/(2.*m)*L1;
C=(m*C2)/2.;
print '%s %.2e %s' %('i) INDUCTAR (L1) is    =  ',L1,'  H ')
print '%s %.2e %s' %('ii) CAPACITOR (C2) is    =  ',C2,'  F ')
print '%s %.2e %s' %('iii) CONSTANT (m) is    =  ',m,'   ')
print '%s %.2e %s' %('iv)   (X) is    =  ',X,'  H ')
print '%s %.2e %s' %('v)    (y) is    =  ',Y,'  H ')
print '%s %.2e %s' %('vi)   (Z) is    =  ',Z,'  F ')
print '%s %.2e %s' %('vii)  (A) is    =  ',A,'  H ')
print '%s %.2f %s' %('viii) (B) is    =  ',B,'  H ')
print '%s %.2e %s' %('x)    (C) is    =  ',C,'  F ')
i) INDUCTAR (L1) is    =   1.91e-01   H 
ii) CAPACITOR (C2) is    =   5.31e-07   F 
iii) CONSTANT (m) is    =   2.41e-02    
iv)   (X) is    =   2.30e-03   H 
v)    (y) is    =   1.15e-03   H 
vi)   (Z) is    =   1.28e-08   F 
vii)  (A) is    =   2.30e-03   H 
viii) (B) is    =   3.96   H 
x)    (C) is    =   6.39e-09   F 

Example E19 : Pg 534

In [19]:
                           # EXAMPLE 8-19            PG NO-534-535
import math
Ro=600.;                        # characteristics Impedance
Fc=1000.;                       # cutt   of   frequency
L=Ro/(4.*math.pi*Fc);
print '%s %.2f %s' %('i) Inductance is    =  ',L,'  H ');
C=1./4.*math.pi*Fc*Ro;
print '%s %.2f %s' %('ii) Capacitance is    =  ',C,'  F ');
m=0.2;
X=(2.*C)/m;                      # X=2C/m;
print '%s %.2f %s' %('iii) X is    =  ',X,'  F ');
Y=L/m;                        Y=L/m;
print '%s %.2f %s' %('iv)  Y is    =  ',Y,'  H ');
Z=(4*m*C)/1-m** 2;
print '%s %.2f %s' %('v) Z   is    =  ',Z,'  F ');
m1=0.6;
X1=(2*C)/m1;                      # X=2C/m;
print '%s %.2f %s' %('iii) X is    =  ',X1,'  F ');
Y1=(2*L)/m1;                        Y1=L/m1;
print '%s %.2f %s' %('iv)  Y is    =  ',Y1,'  H ');
Z1=(2*m1*C)/1-m1** 2;
print '%s %.2f %s' %('v) Z   is    =  ',Z1,'  F ');
i) Inductance is    =   0.05   H 
ii) Capacitance is    =   471238.90   F 
iii) X is    =   4712388.98   F 
iv)  Y is    =   0.24   H 
v) Z   is    =   376991.08   F 
iii) X is    =   1570796.33   F 
iv)  Y is    =   0.08   H 
v) Z   is    =   565486.32   F 

Example E20 : Pg 535

In [20]:
                 # EXAMPLE 8-20   PG NO-535
import math 
Ro=450.;
Fc=20000.;
L=Ro/(4.*math.pi*Fc);
C=1/(4.*math.pi*Fc*Ro);
Z1=Ro/(2.*math.pi*Fc);
print '%s %.2e' %('i) IMPEDANCE (Z1) is   =  ',Z1);
i) IMPEDANCE (Z1) is   =   3.58e-03

Example E21 : Pg 536

In [21]:
                 # EXAMPLE 8-21   PG NO-536-537
import math 
Ro=600.;                      # RESISTANCE
Fc=10000.;                    # FREQUENCY
F=25000.;
L=Ro/(4.*math.pi*Fc);
C=1./(4.*math.pi*Fc*Ro);
Z=Ro*1.-((Fc/F)** 2.)** 0.5;
Zo=Ro/1.-((Fc/F)** 2.)** 0.5;
print '%s %.2e %s' %('i) INDUCTAR (L) is    =  ',L,'  H ')
print '%s %.2e %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
print '%s %.2f %s' %('i) IMPEDANCE (Z) is    =  ',Z,'  ohm ')
print '%s %.2f %s' %('ii) IMPEDANCE (Zo) is    =  ',Zo,'  ohm ')
i) INDUCTAR (L) is    =   4.77e-03   H 
ii) CAPACITOR (C) is    =   1.33e-08   F 
i) IMPEDANCE (Z) is    =   599.60   ohm 
ii) IMPEDANCE (Zo) is    =   599.60   ohm 

Example E22 : Pg 537

In [22]:
             # EXAMPLE 8-22        PG NO-537-538
import math 
L=60.*10.** -3.;
C=150.*10.** -9.;
Fo=1./(2.*math.pi*(L*C)** 0.5);
print '%s %.2f %s' %('ii) FREQUENCY (Fo) is    =  ',Fo,'  Hz ')
R=670.;
BW=R/L;
print '%s %.2f %s' %('ii) BAND WIDTH (B.W) is    =  ',BW,'  rad/sec ')
FL=Fo-(1777.22/2.);
print '%s %.2f %s' %('ii) Lower Cut of Frequency (FL) is    =  ',FL,'  Hz ')
Fu=Fo+(1777.22/2.);
print '%s %.2f %s' %('ii) Upper Cut of Frequency (Fu) is    =  ',Fu,'  Hz ')
ii) FREQUENCY (Fo) is    =   1677.64   Hz 
ii) BAND WIDTH (B.W) is    =   11166.67   rad/sec 
ii) Lower Cut of Frequency (FL) is    =   789.03   Hz 
ii) Upper Cut of Frequency (Fu) is    =   2566.25   Hz 

Example E23 : Pg 538

In [23]:
                  # EXAMPLE 8-23     PG NO-538
import math
L=160.*10.** -3.;
C=0.022*10.** -6.;
Fc=1./math.pi*(L*C)** 0.5;
Zo=(L/C)** 0.5;
print '%s %.2f %s' %('ii) Cut of Frequency (Fc) is    =  ',Fc,'  Hz ')
print '%s %.2f %s' %('ii) IMPEDANCE (Zo) is    =  ',Zo,'  ohm ')
ii) Cut of Frequency (Fc) is    =   0.00   Hz 
ii) IMPEDANCE (Zo) is    =   2696.80   ohm 

Example E24 : Pg 541

In [24]:
                     # EXAMPLE 8-24    PG NO-541-542
import math 
Avf=1.56
Vo=2.262*10.** -3.;
R=15.*10.**3.;
F=0.707;
C=0.002*10.** -6.;
Fc=1./(2.*math.pi*R*C);
print '%s %.2f %s' %('ii) Cut of Frequency (Fc) is    =  ',Fc,'  Hz ')
Vo1=F*Vo;
A=20.*math.log(1.56);
print '%s %.2e %s' %('ii) Out Put Voltage (Vo1) is    =  ',Vo1,'  V ')
ii) Cut of Frequency (Fc) is    =   5305.16   Hz 
ii) Out Put Voltage (Vo1) is    =   1.60e-03   V 

Example E25 : Pg 542

In [25]:
                  # EXAMPLE 8-25     PG NO-542
import math 
Fc=4000.;
R=10.*10.** 3.;
C=1./2.*math.pi*Fc*R;
print '%s %.2f %s' %('i) CAPACITOR (C) is    =  ',C,'  F ')
Avf=1.586;
R1=15000.
R2=Avf-1*R1;
print '%s %.2f %s' %('ii) RESISTANCE (R2) is    =  ',R2,'  ohm ')
i) CAPACITOR (C) is    =   62831853.07   F 
ii) RESISTANCE (R2) is    =   -14998.41   ohm 

Example E26 : Pg 543

In [26]:
          # EXAMPLE-8-26    PG NO-543
import math 
R=15.86;
R1=10.;
MA=R/R1; 
print '%s %.2f' %('i) mid band gain  = ',MA);
i) mid band gain  =  1.59

Example E27 : Pg 545

In [27]:
                  # EXAMPLE 8-27  PG NO-545
import math 
R2=0.586;
MG=1.+0.586;           # MID BAND GAIN
R=10.** 3.;
C=0.02*10.** -6.;
Fc=1/(2*math.pi*R*C);                   # Cut OFF Frequency
GFc=0.707*MG;
MBO=MG*1.4;
print '%s %.2f %s' %('ii) Cut  off Frequency (Fc) is    =  ',Fc,'   ')
print '%s %.2f %s' %('ii) Gain at cutt of frequency (G.Fc) is    =  ',GFc,'   ')
print '%s %.2f %s' %('ii) Mid band out Put (M.B.O) is    =  ',MBO,'  mV ')
ii) Cut  off Frequency (Fc) is    =   7957.75    
ii) Gain at cutt of frequency (G.Fc) is    =   1.12    
ii) Mid band out Put (M.B.O) is    =   2.22   mV 

Example E28 : Pg 545

In [28]:
                       # EXAMPLE-8-28       PG NO-545-546
import math 
Avf=1.586;
R1=10.;
R2=Avf-1*R1;
Fc=5000.;
R=2000.;
C=1./2.*math.pi*R*Fc
print '%s %.2f %s' %('ii) Resistance (R2) is    =  ',R2,'  Kohm ')
print '%s %.2f %s' %('ii) CAPACITOR (C) is    =  ',C,'  F ')
ii) Resistance (R2) is    =   -8.41   Kohm 
ii) CAPACITOR (C) is    =   15707963.27   F 

Example E29 : Pg 547

In [29]:
               # EXAMPLE 8-29     PG NO-547-548
import math 
R1=10000.;
Fc1=8000.;
C1=1./2.*math.pi*R1*Fc1;
R4=15.;
R3=8.79;
Fc2=4000.;
R2=20000.;
C2=1./2.*math.pi*R2*Fc2;
print '%s %.2f %s' %('ii) CAPACITOR (C1) is    =  ',C1,'  F ')
print '%s %.2f %s' %('ii) CAPACITOR (C2) is    =  ',C2,'  F ')
ii) CAPACITOR (C1) is    =   125663706.14   F 
ii) CAPACITOR (C2) is    =   125663706.14   F 

Example E30 : Pg 548

In [30]:
                       # EXAMPLE 8-30    PG NO-548
import math 
R1=10000.;
Fc1=40000 ;
C1=1./R1*Fc1*2*math.pi;
print '%s %.2f %s' %('ii) CAPACITOR (C1) is    =  ',C1,'  F ');
Fc2=8000.;
R2=5000.;
C2=1./R2*Fc2*2.*math.pi;
print '%s %.2e %s' %('ii) CAPACITOR (C2) is    =  ',C2,'  F ');
ii) CAPACITOR (C1) is    =   25.13   F 
ii) CAPACITOR (C2) is    =   1.01e+01   F 

Example E31 : Pg 550

In [31]:
                # EXAMPLE 8-31     PG NO-550
import math 
N=100.;
Ro=450.;
R1=Ro*(N-1)/(N+1);
R2=Ro*(2*N/(N** 2-1));
print '%s %.2f %s' %('ii) Resistance (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii) Resistance(r2) is    =  ',R2,'  ohm ');
ii) Resistance (R1) is    =   441.09   ohm 
ii) Resistance(r2) is    =   9.00   ohm 

Example E32 : Pg 550

In [32]:
                      # EXAMPLE 8-32      PG NO-550
import math 
Zoc=200.;
Zsc=187.5;
Zo=Zoc*Zsc** 0.5;
R1=50.;
R2=150.;
R3=193.65;
N=(R1+R2+R3)/R1;
D=20.*math.log10(N)
print '%s %.2f %s' %('ii) IMPEDANCE (Zo) is    =  ',Zo,'  ohm ');
print '%s %.2f' %('ii)  (N) is    =  ',N);
print '%s %.2f %s' %('ii)  (D) is    =  ',D,'  dB ');
ii) IMPEDANCE (Zo) is    =   2738.61   ohm 
ii)  (N) is    =   7.87
ii)  (D) is    =   17.92   dB 

Example E33 : Pg 551

In [33]:
                # EXAMPLE 8-33       PG NO-551
import math 
N=2.985;
Ro=175.;
R1=Ro*(N-1)/(N+1);
R2=Ro*(2.*N)/(N** 2-1);
print '%s %.2f %s' %('ii) Resistance (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii) Resistance (R2) is    =  ',R2,'  ohm ');
ii) Resistance (R1) is    =   87.17   ohm 
ii) Resistance (R2) is    =   132.08   ohm 

Example E34 : Pg 551

In [34]:
                # EXAMPLE 8-33       PG NO-551
import math 
N=2.985;
Ro=175.;
R1=Ro*(N-1)/(N+1);
R2=Ro*(2.*N)/(N** 2-1);
print '%s %.2f %s' %('ii) Resistance (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii) Resistance (R2) is    =  ',R2,'  ohm ');
ii) Resistance (R1) is    =   87.17   ohm 
ii) Resistance (R2) is    =   132.08   ohm 

Example E35 : Pg 552

In [35]:
                 # EXAMPLE 8-35    PG NO-552
import math
R1=200.;
R2=200.;
R3=100.;
Zoc=(R1*(R2+R3)/(R1+R2+R3));
print '%s %.2f %s' %('i) IMPEDANCE (Zoc) is    =  ',Zoc,'  ohm ');
Zsc=(R1*R3)/(R1+R3);
print '%s %.2f %s' %('ii) IMPEDANCE (Zsc) is    =  ',Zsc,'  ohm ');
Zo=Zoc*Zsc** 0.5;
print '%s %.2f %s' %('iii) IMPEDANCE (Zo) is    =  ',Zo,'  ohm ');
N=2.618;
D=20.*math.log10(N)
print '%s %.2f %s' %('ii) (D) is    =  ',D,'  dB ');
i) IMPEDANCE (Zoc) is    =   120.00   ohm 
ii) IMPEDANCE (Zsc) is    =   66.67   ohm 
iii) IMPEDANCE (Zo) is    =   979.80   ohm 
ii) (D) is    =   8.36   dB 

Example E36 : Pg 552

In [36]:
                 # EXAMPLE 8-36   PG NO-552-553
N=31.622;
Ro=700.;
R1=Ro*((N** 2-1)/(2*N));
R2=Ro*((N+1)/(N-1));
print '%s %.2f %s' %('i) RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii) RESISTANCE (R2) is    =  ',R2,'  ohms ');
i) RESISTANCE (R1) is    =   11056.63   ohm 
ii) RESISTANCE (R2) is    =   745.72   ohms 

Example E37 : Pg 553

In [37]:
                 # EXAMPLE 8-37      PG NO-553
R1=657.08;
R2=44.316;
Zoc=R1+R2;
Zsc=R1+((R1*R2)/(R1+R2));
Zo=(Zoc*Zsc)** 0.5;
N=(R2+R1+Zo)/R2;
print '%s %.2f %s' %('i)    impedance (Zoc) is    =  ',Zoc,'  ohm ');
print '%s %.2f %s' %('ii) impedance (Zsc) is    =  ',Zsc,'  ohm ');
print '%s %.2f %s' %('iii)impedance (Zo) is    =  ',Zo,'  ohm ');
print '%s %.2f' %('iv) (N) is    =  ',N);
i)    impedance (Zoc) is    =   701.40   ohm 
ii) impedance (Zsc) is    =   698.60   ohm 
iii)impedance (Zo) is    =   699.99   ohm 
iv) (N) is    =   31.62

Example E38 : Pg 554

In [38]:
             # EXAMPLE 8-38    PG NO-554
N=5.6234;
Ro=450.;
R1=Ro*((N** 2-1)/(2*N));
R2=Ro*((N+1)/(N-1));
print '%s %.2f %s' %('i) RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii) RESISTANCE (R2) is    =  ',R2,'  ohm ');
i) RESISTANCE (R1) is    =   1225.25   ohm 
ii) RESISTANCE (R2) is    =   644.66   ohm 

Example E39 : Pg 554

In [39]:
                   # EXAMPLE 8-39       PG NO-554
R1=250.;
R2=750.;
Zoc=(R1*(R1+R2))/(R1+R2+R1);
Zsc=((R1*R2)/(R1+R2));
Zo=(Zoc*Zsc)**0.5;
print '%s %.2f %s' %('i)    impedance (Zoc) is    = ',Zoc, 'ohm ');
print '%s %.2f %s' %('ii) impedance (Zsc) is    =  ',Zsc,'  ohm ');
print '%s %.2f %s' %('iii)impedance (Zo) is    =  ',Zo,'  ohm ');
i)    impedance (Zoc) is    =  200.00 ohm 
ii) impedance (Zsc) is    =   187.50   ohm 
iii)impedance (Zo) is    =   193.65   ohm 

Example E40 : Pg 554

In [40]:
                   # EXAMPLE 8-40  PG NO-554-555
R1=459.089;
R2=22500.;
Zoc=(R1*(R1+R2))/(R1+R2+R1);
Zsc=((R1*R2)/(R1+R2));
Zo=(Zoc*Zsc)**0.5;
print '%s %.2f %s' %('i)    impedance (Zoc) is    =  ',Zoc,'  ohm ');
print '%s %.2f %s' %('ii) impedance (Zsc) is    =  ',Zsc,'  ohm ');
print '%s %.2f %s' %('iii)impedance (Zo) is    =  ',Zo,'  ohm ');
i)    impedance (Zoc) is    =   450.09   ohm 
ii) impedance (Zsc) is    =   449.91   ohm 
iii)impedance (Zo) is    =   450.00   ohm 

Example E41 : Pg 557

In [41]:
              # EXAMPLE 8-41   PG NO-557
N=7.943;
Z=300.;          # IMPEDANCE
R1=((N-1.)/N)*Z;
R2=Z/(N-1.);
print '%s %.2f %s' %('i)   RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
i)   RESISTANCE (R1) is    =   262.23   ohm 
ii)   RESISTANCE (R2) is    =   43.21   ohm 

Example E42 : Pg 557

In [42]:
                   # EXAMPLE 8-43   PG NO-557
Z1=450.;
Z2=300.;
R1=(Z1*(Z1-Z2))**0.5;
R2=((Z1*Z2*Z2)/(Z1-Z2))**0.5;
print '%s %.2f %s' %('ii)   RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
ii)   RESISTANCE (R1) is    =   259.81   ohm 
ii)   RESISTANCE (R2) is    =   519.62   ohm 

Example E43 : Pg 557

In [43]:
                   # EXAMPLE 8-43   PG NO-557
Z1=450.;
Z2=300.;
R1=(Z1*(Z1-Z2))**0.5;
R2=((Z1*Z2*Z2)/(Z1-Z2))**0.5;
print '%s %.2f %s' %('ii)   RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
ii)   RESISTANCE (R1) is    =   259.81   ohm 
ii)   RESISTANCE (R2) is    =   519.62   ohm 

Example E45 : Pg 559

In [44]:
                # EXAMPLE 8-45 PG NO-559-560
N=5.6234;
R1=500.;
R2=R1/(N-1.);
R3=R1*(N-1.);
print '%s %.2f %s' %('i)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R3) is    =  ',R3,'  ohm ');
i)   RESISTANCE (R2) is    =   108.15   ohm 
ii)   RESISTANCE (R3) is    =   2311.70   ohm 

Example E46 : Pg 560

In [45]:
                   # EXAMPLE 8-46     PG NO-560-561
N=7.0795;
Z1=450.;
R1=Z1*((N-1.)/(N+1.));
R2=Z1*((N+1.)/(N-1.));
print '%s %.2f %s' %('ii)   RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
ii)   RESISTANCE (R1) is    =   338.61   ohm 
ii)   RESISTANCE (R2) is    =   598.04   ohm 

Example E47 : Pg 561

In [46]:
              # EXAMPLE 8-47    PG  NO-561
import math 
R1=175.;
R2=350.;
Zoc=R1+R2;
Zsc=R1+((R1*R2)/(R1+R2));
Zo=(Zoc*Zsc)**0.5;
N=(R1+R2+Zo)/R2;
AT=20.*math.log10(2.618);
print '%s %.2f %s' %('i)    impedance (Zoc) is    =  ',Zoc,'  ohm ');
print '%s %.2f %s' %('ii) impedance (Zsc) is    =  ',Zsc,'  ohm ');
print '%s %.2f %s' %('iii)impedance (Zo) is    =  ',Zo,'  ohm ');
print '%s %.2f' %('iv)   (N) is    =  '         ,N)
print '%s %.2f %s' %('v)attenuation (AT) is    =  ',AT,'  dB ')
i)    impedance (Zoc) is    =   525.00   ohm 
ii) impedance (Zsc) is    =   291.67   ohm 
iii)impedance (Zo) is    =   391.31   ohm 
iv)   (N) is    =   2.62
v)attenuation (AT) is    =   8.36   dB 

Example E48 : Pg 561

In [47]:
                         # EXAMPLE  8-48   PG NO-561
R=300.;
N=31.62;
R1=((N-1.)/N)*R;
R2=R/(N-1.);
print '%s %.2f %s' %('i)   RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
i)   RESISTANCE (R1) is    =   290.51   ohm 
ii)   RESISTANCE (R2) is    =   9.80   ohm 

Example E49 : Pg 562

In [48]:
                # EXAMPLE 8-49   PG NO-562
Ro=500.;
N=10.;
RA=Ro*((N-1.)/(N+1.));
RB=Ro*((N+1.)/(N-1.));
R1=Ro*((N-1.)/(N+1.));
R2=Ro*((2.*N)/(N**2.-1.));
print '%s %.2f %s' %('ii)   RESISTANCE (RA) is    =  ',RA,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (RB) is    =  ',RB,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R1) is    =  ',R1,'  ohm ');
print '%s %.2f %s' %('ii)   RESISTANCE (R2) is    =  ',R2,'  ohm ');
ii)   RESISTANCE (RA) is    =   409.09   ohm 
ii)   RESISTANCE (RB) is    =   611.11   ohm 
ii)   RESISTANCE (R1) is    =   409.09   ohm 
ii)   RESISTANCE (R2) is    =   101.01   ohm