From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3547/CH2/EX2.8/2_8.jpg | Bin 0 -> 59823 bytes 3547/CH2/EX2.8/Ex2_8.sce | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 3547/CH2/EX2.8/2_8.jpg create mode 100644 3547/CH2/EX2.8/Ex2_8.sce (limited to '3547/CH2/EX2.8') 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 Binary files /dev/null and b/3547/CH2/EX2.8/2_8.jpg 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); -- cgit