summaryrefslogtreecommitdiff
path: root/1655/CH4/EX4.15.10/Example_4_15_10.sce
blob: 0687dc50dc9098b8a009a0a263106783602967b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example 4.15.10  page 4.42

clc;
clear;

tau=0.1d-6;     //pulse broadning
dist=18d3;      //distance

Bopt=1/(2*tau);     //computing optical bandwidth
Bopt=Bopt*10^-6;
dispertion=tau/dist;        //computing dispersion
dispertion=dispertion*10^12;
BLP=Bopt*dist;      //computing Bandwidth length product
BLP=BLP*10^-3;
printf("\noptical bandwidth is %d MHz.\nDispersion per unit length is %.1f ns/km.\nBandwidth length product is %d MHz.km",Bopt,dispertion,BLP);
printf("\nNOTE - printing mistake in the book at dispersion per unit length.\nThey have printed ps/km; it should be ns/km");

//printing mistake in the book at dispersion per unit length.They have printed ps/km; it should be ns/km.
//answer in the book 5.55 ps/km (incorrect)