summaryrefslogtreecommitdiff
path: root/3543/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3543/CH2/EX2.4/Ex2_4.sce')
-rw-r--r--3543/CH2/EX2.4/Ex2_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3543/CH2/EX2.4/Ex2_4.sce b/3543/CH2/EX2.4/Ex2_4.sce
new file mode 100644
index 000000000..195073848
--- /dev/null
+++ b/3543/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,20 @@
+// Example 2.4
+// Calculation of output power
+// Page no 46
+
+clc;
+clear;
+close;
+
+// Given data
+Pi=1; // Input power
+A=0.5; // Atteuation
+L=15; // Fiber link length
+
+// Output Power
+Po=Pi*10^((-A*L)/10);
+
+//Display result on command window
+printf("\n Output Power (in mW) = %0.3f ",Po);
+
+