summaryrefslogtreecommitdiff
path: root/1883/CH3/EX3.6.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1883/CH3/EX3.6.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1883/CH3/EX3.6.2')
-rwxr-xr-x1883/CH3/EX3.6.2/Example3_16.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1883/CH3/EX3.6.2/Example3_16.sce b/1883/CH3/EX3.6.2/Example3_16.sce
new file mode 100755
index 000000000..53181b2dc
--- /dev/null
+++ b/1883/CH3/EX3.6.2/Example3_16.sce
@@ -0,0 +1,13 @@
+//Chapter-3,Example3_6_2,pg 3-18
+
+L=3 //length of fibre in km
+
+a=1.5 //Loss specification in dB/km
+
+Pin=9.0 //input power in uW
+
+Pl=a*L //Power loss
+
+Pout=Pin*10^(-Pl/10) //as Power loss or attenuation is Pl=(-10)*log10(Pout/Pin)
+
+printf("\nThe output power Pout = %.3f uW\n",Pout)