# 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 '
# 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 ')
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
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 '
# 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 ')
# 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 ');
# 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);
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# 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 ')
# EXAMPLE-8-26 PG NO-543
import math
R=15.86;
R1=10.;
MA=R/R1;
print '%s %.2f' %('i) mid band gain = ',MA);
# 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 ')
# 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 ')
# 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 ')
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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);
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ');
# 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 ')
# 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 ');
# 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 ');