summaryrefslogtreecommitdiff
path: root/374/CH9/EX9.2/92.sci
diff options
context:
space:
mode:
Diffstat (limited to '374/CH9/EX9.2/92.sci')
-rw-r--r--374/CH9/EX9.2/92.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/374/CH9/EX9.2/92.sci b/374/CH9/EX9.2/92.sci
new file mode 100644
index 000000000..35f05e329
--- /dev/null
+++ b/374/CH9/EX9.2/92.sci
@@ -0,0 +1,11 @@
+//chapter 9 example 2//
+clc
+clear
+//length of multimode fibre=L1,measured output optical pwer at far end=Pf,measured output optical power at near end=Pn,fibre cut back to a length=L2,attenuation=adB//
+L1=1.5;//in km//
+L2=0.002;//in km//
+Pn=385.4;//in microwatts//
+Pf=50.1;//in micro watts//
+k=log(Pn/Pf)*0.43;
+adB=(10*k)/(L1-L2);
+printf("\n attenuation per km=%f m\n",adB) \ No newline at end of file