#page no. 159
K=4.
tbw=20.*10.**6.#total bandwidth
cbwpc=25.*10.**3.#channel bandwidth/simplex channel
n=2.#in a duplex link no of channels
dcbw=n*cbwpc#duplex channel bandwidth
N=tbw/dcbw
N1=N/K
print '%s %d %s' %('total no. of duplex channels =',N,'channels')
print '%s %d %s' %('no.of channels per cell-site =',N1,'channels')
#page no. 162
K=4.
N=9.#no.of cells in 1 cluster
tbw=60.*10.**6.#total bandwidth
cbwpc=25.*10.**3.#channel bandwidth/simplex channel
n=2.#in a duplex link no of channels
dcbw=n*cbwpc#duplex channel bandwidth
N=tbw/dcbw
sbw=10.**6.#bandwidth for setup channels
N1=sbw/dcbw#total no.of available setup channels
print'%s %.f %s' %('total no.of available setup channels =',N1,'channels')
vbw=tbw-sbw
N2=vbw/dcbw#total no. of available voice channels
print'%s %.f %s' %('total no.of available voice channels =',N2,'voice channels')
#page no.164
NV=168.
N=7.
NVpc=NV/N#number of voice channels omnidirectional case
NS=3.
NScl=N*NS
NcS=NV/NScl #number of voice channels 3-sector
NS1=6.
NScl1=N*NS1
NcS1=NV/NScl1 #number of voice channels 6-sector
print'%s %.f' %('number of voice channels assigned in each cell is =',NVpc)
print'%s %.f' %('number of voice channels assigned in each sector(3-sector case) is =',NcS)
print'%s %.f' %('number of voice channels assigned in each sector(6-sector case) is =',NcS1)
#page no. 173
import math
R2=20.
N=7.
R1=R2/2.6
A=round(3.*math.sqrt(3.)/2.*R1**2.)#size of smaller cell
print'%s %.f %s' %('size of each smaller cell is =',A,'kmsqr')