summaryrefslogtreecommitdiff
path: root/374/CH3/EX3.1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /374/CH3/EX3.1
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '374/CH3/EX3.1')
-rw-r--r--374/CH3/EX3.1/31.sci18
1 files changed, 18 insertions, 0 deletions
diff --git a/374/CH3/EX3.1/31.sci b/374/CH3/EX3.1/31.sci
new file mode 100644
index 000000000..bc8bab50b
--- /dev/null
+++ b/374/CH3/EX3.1/31.sci
@@ -0,0 +1,18 @@
+//chapter 3 example 1//
+//length of fibre=l,average optical power=Pin,average output power=Pout,signal attenuation per km=A//
+clc
+clear
+Pin=100*(10^-6);//in watts//
+Pout=2.5*(10^-6);//in watts//
+l=10//in kilometers//
+A=(10*(log10(Pin/Pout)))/l;//per km//
+printf("\n a) signal attenuation per km=%f per km.\n",A);
+//sigmal attenuaion in db=Adb,total attenuation for 11kms=A1,attenuation for 3 splice each with 0.8db=A2,overall attenuation in the link=Anet,ratio between input and output power=x//
+Adb=(A*10);
+printf("\n b) signal attenuation in decibels=%f db.\n",Adb);
+A1=(A*11);
+A2=2.4;
+Anet=A1+A2;
+printf("\n c) overall signal attenuation in decibels=%f db.\n",Anet);
+x=(10^(Anet/10));
+printf("\n d) ratio between input and output power=%f\n",x); \ No newline at end of file