summaryrefslogtreecommitdiff
path: root/3834/CH3/EX3.2.2/Ex3_2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3834/CH3/EX3.2.2/Ex3_2_2.sce')
-rw-r--r--3834/CH3/EX3.2.2/Ex3_2_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3834/CH3/EX3.2.2/Ex3_2_2.sce b/3834/CH3/EX3.2.2/Ex3_2_2.sce
new file mode 100644
index 000000000..84c60dfb5
--- /dev/null
+++ b/3834/CH3/EX3.2.2/Ex3_2_2.sce
@@ -0,0 +1,17 @@
+//Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
+//Windows 7
+//Scilab version- 6.0.0
+//Example 3.2.2
+clc;
+clear;
+//given
+
+A=0.5;//Attenuation in dB/km
+Pin=1E-3; //Power launched in mW
+Pout=50E-6; //Receiver sensitivity in uW
+e=Pin/Pout;
+s=10/A;
+d=log10(e);
+lmax=s*d;//maximum transistion distance
+
+mprintf("Maximum transistion distance = %.2f km",lmax);