diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3547/CH2/EX2.8 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3547/CH2/EX2.8')
-rw-r--r-- | 3547/CH2/EX2.8/2_8.jpg | bin | 0 -> 59823 bytes | |||
-rw-r--r-- | 3547/CH2/EX2.8/Ex2_8.sce | 26 |
2 files changed, 26 insertions, 0 deletions
diff --git a/3547/CH2/EX2.8/2_8.jpg b/3547/CH2/EX2.8/2_8.jpg Binary files differnew file mode 100644 index 000000000..88529ddd8 --- /dev/null +++ b/3547/CH2/EX2.8/2_8.jpg diff --git a/3547/CH2/EX2.8/Ex2_8.sce b/3547/CH2/EX2.8/Ex2_8.sce new file mode 100644 index 000000000..a35a8ec89 --- /dev/null +++ b/3547/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,26 @@ +// Example no 2.8
+// To find the total loss and output power in mW and dBm in fiber
+// Page no. 72
+
+clc;
+clear;
+
+// Given data
+losscoe=0.046; // Loss coefficient in km^-1
+L=80; // Length of fiber in km
+PindBm=3; // Input power in dBm
+
+// To find total loss of fiber
+loss=round(4.343*losscoe*L); // Total loss in fiber
+
+// Displaying the result in command window
+printf('\n Total loss in fiber = %0.0f dB',loss);
+
+// To find output power
+PoutdBm=PindBm-loss; // Output power in dBm
+
+PoutmW=10^(PoutdBm/10); // Output power in mW
+
+//Displaying the result in command window
+printf('\n Output power of fiber = %0.0f dBm',PoutdBm);
+printf('\n Output power of fiber = %0.2f mW',PoutmW);
|