summaryrefslogtreecommitdiff
path: root/3834/CH14/EX14.1.2/Ex14_1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3834/CH14/EX14.1.2/Ex14_1_2.sce')
-rw-r--r--3834/CH14/EX14.1.2/Ex14_1_2.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3834/CH14/EX14.1.2/Ex14_1_2.sce b/3834/CH14/EX14.1.2/Ex14_1_2.sce
new file mode 100644
index 000000000..88f74079a
--- /dev/null
+++ b/3834/CH14/EX14.1.2/Ex14_1_2.sce
@@ -0,0 +1,22 @@
+//Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
+//Windows 8
+//Scilab version- 6.0.0
+//Example 14.1.2
+clc;
+clear ;
+//given
+
+lambda=1310;//operating wavelength in nm
+Transport_line=36;//Length of transport line in km
+Power_budget=10;//linked power budget in dB
+Loss_singlemode_fiber=0.6;//loss of SM fiber in dB/km
+
+
+Linkloss=Loss_singlemode_fiber*Transport_line;//total link loss in dB
+
+mprintf("Link loss = %.1f dB\n ",Linkloss);
+if (Power_budget < Linkloss) then
+mprintf("Hence, we need to use an in-line amplifier");
+else
+ mprintf("Hence, we need not use an in-line amplifier");
+end