# Example 11.1
# Calculation of the minimum number of taps needed to compensate for the fiber dispersion
# Page no 509
import math
# Given data
b=22*10**-27; # Power launched in port 1
l=800*10**3; # Power launched in port 2
T=50*10**-12; # Power launched in port 3
# Bit rate of communication system
k=math.ceil((math.pi*b*l)/T**2);
n=(2*k)+1;
# Displaying results in the command window
print "\n The number of the taps = ",round(n,3)
# The answers vary due to round off error