diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1883/CH3/EX3.6.3/Example3_18.sce | |
download | Scilab-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.3/Example3_18.sce')
-rwxr-xr-x | 1883/CH3/EX3.6.3/Example3_18.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1883/CH3/EX3.6.3/Example3_18.sce b/1883/CH3/EX3.6.3/Example3_18.sce new file mode 100755 index 000000000..8e21496b2 --- /dev/null +++ b/1883/CH3/EX3.6.3/Example3_18.sce @@ -0,0 +1,21 @@ +//Chapter-3,Example3_6_3,pg 3-18
+
+a=2.2
+
+//ratio= Pout/Pin
+
+//For a length of L=2 km
+
+Pl1=a*2
+
+ratio_1=10^(-Pl1/10) //as Power loss or attenuation is Pl=(-10)*log10(Pout/Pin)
+
+printf("\nThe fractional initial intensity after 2 km is %.3f \n",ratio_1)
+
+//For a length of L=6 km
+
+Pl2=a*6
+
+ratio_2=10^(-Pl2/10) //as Power loss or attenuation is Pl=(-10)*log10(Pout/Pin)
+
+printf("\nThe fractional initial intensity after 6 km is %.3f \n",ratio_2)
|