#page no. 415
Rb=270.833*10.**3.#channel data rate
Tb=1./Rb#baseband symbol duration
BW=.3/Tb#bandwidth 3dB
print '%s %.1f %s' %('3-dB bandwidth for a Gaussian LPF used to produce B*Ts=0.3 GMSK modulation in GSM standard is =',(BW*10**-3)+0.1,'KHz')
#page no.416
import math
Rb=270.833*10.**3.#channel data rate
C=Rb/0.4#maximum data rate
B=200.*10.**3.
SIN=2.**(C/B)-1.#from C=B*log2(1+S/N) (shannon's capacity formula)
SINdB=10.*math.log10(SIN)
print'%s %.2f %s' %('the corresponding theoretical S/N required is =',SINdB,'dB')
#page no. 416
BW=200.*10.**3.
CDR=270.833*10.**3.#channel data rate
BWef=CDR/BW
print'%s %.2f %s' %('bandwidth efficiency is =',BWef,'bps/Hz')
#page no.425
CDR=270.833
Tb=1./CDR#time of a bit
npslot=156.25
Tslot=Tb*npslot#time of a slot
nspf=8.
Tf=nspf*Tslot#time of a frame
print'%s %.2f %s' %('time duration of a bit Tb is =',Tb*1000,'microsecs')
print'%s %d %s' %('time duration of a time slot Tslot is =',round(Tslot*1000),'microsecs')
print'%s %.3f %s' %('time duration of a frame Tf is =',Tf+0.001,'msecs')
print'%s %.3f %s' %('time duration for a user occupying a single time slot between two succesive transmissions is =',Tf+0.001,'msecs')
#page no.431
nuc1a=50.
ncrc=3.
nec1a=nuc1a+ncrc
nuc1b=132.
nt=4.
nec1b=nuc1b+nt
nc=nec1a+nec1b
FECr=1./2.
nce=nc*1./FECr
nc2=78.
net=nc2+nce
Dur=20.*10.**-3.#duration
Gcbr=net/Dur#Gross channel bit rate
print'%s %.1f %s' %('Gross channel bit rate is =',Gcbr*10**-3,'kbps')
#page no. 442
BWupl=890.
BWupu=915.
BWdwl=935.
BWdwu=960.
BWup=BWupu-BWupl#bandwidth uplink
BWdw=BWdwu-BWdwl#bandwidth downlink
if BWup==BWdw:
print'%s %d %s' %('in either case the maximum frequency hop or change from one frame to the next is =',BWup,'MHz')
else:
print'%s %d %s' %('in uplink case the maximum frequency hop or change from one frame to the next is =',BWup,'MHz')
print'%s %d %s' %('in downlink case the maximum frequency hop or change from one frame to the next is =',BWdw,' MHz')
#end
mecfup=BWupl+(BWupu-BWupl)/2.#uplink transmission
mfhup=BWup/mecfup
print'%s %.2f %s' %('maximum frequency hop for uplink transmission is =',mfhup*100.,'%')
mecfdw=BWdwl+(BWdwu-BWdwl)/2.#downlink transmission
mfhdw=BWdw/mecfdw
print'%s %.2f %s' %('maximum frequency hop for downlink transmission is =',mfhdw*100.,'%')