summaryrefslogtreecommitdiff
path: root/3547/CH2/EX2.8
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3547/CH2/EX2.8
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 '3547/CH2/EX2.8')
-rw-r--r--3547/CH2/EX2.8/2_8.jpgbin0 -> 59823 bytes
-rw-r--r--3547/CH2/EX2.8/Ex2_8.sce26
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
new file mode 100644
index 000000000..88529ddd8
--- /dev/null
+++ b/3547/CH2/EX2.8/2_8.jpg
Binary files differ
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);