#page no. 101
A=140.
n=7.
Na=40.
C=A/n#coverage area of each cell
Nvchpercell=30./100.*Na
N=Nvchpercell*n#Number of voice channels
print '%s %d %s' %('coverage area of each cell =',C,'kmsqr')
print '%s %d %s' %('Number of voice channels =',N,'channels')
#page no.102
K=4.
Acell=7.
Acl=K*Acell#area of cluster
Asys=1765.
Nservarea=Asys/Acl#number of clusters
N=round(Nservarea)
print'%s %d' %('Numer of times the cluster of size 4 has to be replicated is',N)
#page no.103
import math
N=32.
Rkm=1.6
Acell=(3.*math.sqrt(3.)/2.)*(Rkm**2.)
TA=N*Acell#total service area
Tc=336.
n=7.
Ncpc=Tc/n#number of channels per cell
TSC=Ncpc*N#total sysytem capacity
N1=128.
Ahex=TA/N1
R=math.sqrt(Ahex/(1.5*math.sqrt(2.)))
NCap=Ncpc*N1
print'%s %d %s' %('total service area is =',round(TA),'kmsqr')
print'%s %d ' %('number of channels per cell =',Ncpc)
print'%s %d %s' %('total sysytem capacity in no. of channels =',TSC,'channels')
print'%s %.2f %s' %('radius of the new smaller cell is =',R,'km')
print'%s %d %s' %('new system capacity in no. of channels',NCap,'channels')
#page no.107
N=1000.
n=20.
n1=4.
M=n/n1
TSC=N*M#system capacity
print'%s %d %s' %('the system capacity in no. of users',TSC,'users')
n2=100.
n3=4.
M1=n2/n3
NSC=N*M1#new system capacity for increased no. of cells
print'%s %d %s' %('the new system capacity for increased no. of cells in no. of users',NSC,'users')
n4=700.
n5=7.
M2=n4/n5
NSC1=N*M2#new system capacity for increased no. of cells
print'%s %d %s' %('the system capacity for increased no. of cells & also cluster size in no. of users',NSC1,'users')
#page no.109
import math
Asys=4200.#area of system
Acell=12.#area of cell
N=1001.
K=7.
Acl=K*Acell#area of cluster
M=Asys/Acl#no. of clusters
print'%s %d %s' %('no. of clusters',M,'clusters')
J=N/K#cell capacity
print'%s %d %s' %('cell capacity is =',J,'channels/cell')
C=N*M#system capacity
print'%s %d %s' %('the system capacity in no. of channels',C,'channels')
k=4.
acl=k*Acell
m=Asys/acl
m1=math.floor(m)
print'%s %d' %('no. of clusters for reduced cluster size',m1)
c=N*m1
print'%s %d %s' %('new system capacity for reduced cluster size in no. of channels',c,'channels')
#answers vary due to approximations.
#page no. 110
n=16.
N=7.
M=12.
Ncpc=n*N#no. of channels per cluster
TSC=Ncpc*M#system capacity
print'%s %d %s' %('no. of channels per cluster is =',Ncpc,'channels/cluster')
print'%s %d %s' %('the system capacity in channels/system is =',TSC,'channels/system')
#page no. 114
i=2.#no. of cells(centre to centre) along any chain of hexagon
j=4.#no. of cells(centre to centre) in 60deg. counterclockwise of i
K=i*i+j*j+i*j#cluster size
print'%s %.f' %('no. of cells in a cluster for i=2 & j=4 is',K)
i1=3.
j1=3.
K1=i1*i1+j1*j1+i1*j1#cluster size
print'%s %.f' %('no. of cells in a cluster for i=3 & j=3 is',K1)
#page no. 115
R=.64#radius
q=12.#co-channel reuse ratio
D=q*R#nearest distance
print'%s %.2f %s' %('distance from the nearest cochannel cell is D =',D,'km')
#page no.115
R=.8
D=6.4
q=D/R#frquency reuse ratio
print'%s %d' %('frquency reuse ratio q is =',q)