summaryrefslogtreecommitdiff
path: root/3547/CH2/EX2.14/Ex2_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '3547/CH2/EX2.14/Ex2_14.sce')
-rw-r--r--3547/CH2/EX2.14/Ex2_14.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3547/CH2/EX2.14/Ex2_14.sce b/3547/CH2/EX2.14/Ex2_14.sce
new file mode 100644
index 000000000..0ae8013b4
--- /dev/null
+++ b/3547/CH2/EX2.14/Ex2_14.sce
@@ -0,0 +1,22 @@
+// Example No. 2.14
+// To calculate the lower limit on the transmitter power in dBm and mW units.
+// Page No. 83
+
+clc;
+clear;
+
+// Given data
+l=80; // Length of fiber in km
+F1=-0.2*l; // Fiber loss in dB
+F2=-0.5; // Filter loss in dB
+G=15; // Amplifier gain in dB
+Pout=-3; // Minimum power required at the receiver in dBm
+
+// Lower limit on the transmitter power
+Pin=Pout-F1-F2-G; // Lower limit on the transmitter power in dBm
+PinmW=10^(0.1*Pin); // Lower limit on the transmitter power in mW
+
+// Displaying the result in command window
+printf('\n The lower limit on the transmitter power in dBm = %0.1f',Pin);
+printf('\n The lower limit on the transmitter power in mW = %0.4f',PinmW);
+