summaryrefslogtreecommitdiff
path: root/1655/CH4/EX4.18.1/Example_4_18_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1655/CH4/EX4.18.1/Example_4_18_1.sce')
-rwxr-xr-x1655/CH4/EX4.18.1/Example_4_18_1.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1655/CH4/EX4.18.1/Example_4_18_1.sce b/1655/CH4/EX4.18.1/Example_4_18_1.sce
new file mode 100755
index 000000000..43f1c9bef
--- /dev/null
+++ b/1655/CH4/EX4.18.1/Example_4_18_1.sce
@@ -0,0 +1,23 @@
+// Example 4.18.1 page 4.45
+
+clc;
+clear;
+
+L=10; //length of optical link
+n1=1.49 //refractive index
+c=3d8; //speed of light
+delta=1/100; //relative refractive index
+
+delTS=L*n1*delta/c; //computing delay difference
+delTS=delTS*10^12;
+sigmaS=L*n1*delta/(2*sqrt(3)*c); //computing rms pulse broadning
+sigmaS=sigmaS*10^12;
+B=1/(2*delTS); //computing maximum bit rate
+B=B*10^3;
+B_acc=0.2/(sigmaS); //computing accurate bit rate
+B_acc=B_acc*10^3;
+BLP=B_acc*L; //computing Bandwidth length product
+
+printf("\nDelay difference is %d ns.\nRMS pulse broadning is %.1f ns.\nBit rate is %.1f Mbit/s.\nAccurate bit rate is %.3f Mbits/s.\nBandwidth length product is %.1f MHz.km",delTS,sigmaS,B,B_acc,BLP);
+
+//answer for maximum bit rate is given as 1.008 Mb/s, deviation of 0.008 Mb/s.