Chapter 1 Introduction to electronic communication

Example 1.1.a Page no 14

In [16]:
#Given
c=300000000
f1=150000000.0
f2=430000000.0
f3=8000000.0
f4=750000.0

#Calculation
W1 = c/f1
W2=c/f2
W3=c/f3
W4=c/f4

#Result
print"(a) Wavelength is ",W1,"meter"
print"(b) Wavelength is ",round(W2,3),"meter"
print"(c) Wavelength is ",W3,"meter"
print"(d) Wavelength is ",W4,"meter"
(a) Wavelength is  2.0 meter
(b) Wavelength is  0.698 meter
(c) Wavelength is  37.5 meter
(d) Wavelength is  400.0 meter

Example 1.2 page no 15

In [11]:
#Given
c=300000000
wavelength=1.5

#Calculation
frequency=c/wavelength

#Result
print"Signal frequncy is ",frequency/1000000.0,"MHz"
Signal frequncy is  200.0 MHz

Example 1.3 page no 15

In [12]:
#Given
wavelength_feet=75
wavelength_meter= 75/3.28
c=300000000

#Calculation
frequency=c/wavelength_meter

#Result
print"The signal frequncy is ",frequency/1000000.0,"MHz"
The signal frequncy is  13.12 MHz

Example 1.4 page no 15

In [25]:
#Given
wavelength_inches=8
wavelength_meter=  8/39.37
c=300

#Calculation
frequency= c/wavelength_meter

#Result
print"The signal freuency is ",round(frequency,1),"MHz"
print"The signnalfrequency is ",round(frequency*10**-3,2),"GHz"
The signal freuency is  1476.4 MHz
The signnalfrequency is  1.48 GHz

Example 1.5 page no 18

In [14]:
#Given
f1=902000000
f2=928000000

#Calculation
bandwidth=f2-f1

#Result
print"Width of the band is ",bandwidth/1000000,"MHz"
Width of the band is  26 MHz

Example 1.6 page no 19

In [15]:
#Given
bandwidth_megahertz= 6
f1_megahertz=54

#Calculation
f2_megahertz=f1_megahertz + bandwidth_megahertz

#Result
print"Upper frequency limit is ",f2_megahertz,"MHz"
Upper frequency limit is  60 MHz