#page no.195
Nmacro=7.
Nchmacro=16.
C1=Nmacro*Nchmacro#channel capacity
Nminpmac=4.
C2=Nmacro*Nchmacro*Nminpmac
Nmicpmin=4.
C3=Nmacro*Nchmacro*Nminpmac*Nmicpmin
print '%s %d %s' %('channel capacity of macrocell system is =',C1,'channels')
print '%s %d %s' %('channel capacity of minicell system is =',C2,'channels')
print '%s %d %s' %('channel capacity of minicell system is =',C3,'channels')
#page no.195
r0=2.*10.**3.
r1=1.*10.**3.
nl=4.#no. of large cells
ns=(r0/r1)**2.*nl-1.#split cells within area=split cells within square-1
ncpl=120.
n2=nl*ncpl#no. of channels without cell splitting
ncps=120.
n1=ns*ncps#no. of channels with cell splitting
inc=n1/n2#increase in the number of cells
print'%s %.2f %s' %('increase in the number of cells is =',inc,'times')
#page no. 220
k=184.#information bits
n=224.#encoded bits
print'%s %.f %s' %('number of parity check bits is =',n-k,'bits')
r=k/n#code rate
print'%s %.2f' %('the code rate of block encoder is =',r)
#page no. 227
nip=228.
nop=456.
cr=nop/nip
ntdma=8.#no.of TDMA blocks
nebptd=nop/ntdma#no. of bits/tdma frame
print'%s %d' %('Number of encoded data bits in each TDMA frame is =',nebptd)
ttdma=4.6*10**-3.#1 TDMA frame duration
tttdma=ntdma*ttdma
print'%s %.1f %s' %('Delay in reconstructing the codewords to the reception of 8 TDMA frames is =',tttdma*10**3,'ms')