summaryrefslogtreecommitdiff
path: root/3717/CH16/EX16.3/Ex16_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3717/CH16/EX16.3/Ex16_3.sce')
-rw-r--r--3717/CH16/EX16.3/Ex16_3.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3717/CH16/EX16.3/Ex16_3.sce b/3717/CH16/EX16.3/Ex16_3.sce
new file mode 100644
index 000000000..58be1fc2d
--- /dev/null
+++ b/3717/CH16/EX16.3/Ex16_3.sce
@@ -0,0 +1,10 @@
+// Ex16_3 Page:311 (2014)
+clc;clear;
+z = 30; // Length of the optical fibre, km
+alpha = 0.8; // Fibre loss, dB/km
+P_i = 200; // Power input to the optical fibre, micro-watt
+P_o = P_i/10^(alpha*z/10); // Output power of the optical fibre, micro-watt
+printf("\nThe output power from the optical fibre = %5.3f micro-watt", P_o);
+
+// Result
+// The output power from the optical fibre = 0.796 micro-watt \ No newline at end of file