summaryrefslogtreecommitdiff
path: root/1271/CH5/EX5.12
diff options
context:
space:
mode:
Diffstat (limited to '1271/CH5/EX5.12')
-rwxr-xr-x1271/CH5/EX5.12/12.txt1
-rwxr-xr-x1271/CH5/EX5.12/example5_12.sce10
2 files changed, 11 insertions, 0 deletions
diff --git a/1271/CH5/EX5.12/12.txt b/1271/CH5/EX5.12/12.txt
new file mode 100755
index 000000000..8ef3405bf
--- /dev/null
+++ b/1271/CH5/EX5.12/12.txt
@@ -0,0 +1 @@
+ Absorption coefficient = 69.897000 dB/km. \ No newline at end of file
diff --git a/1271/CH5/EX5.12/example5_12.sce b/1271/CH5/EX5.12/example5_12.sce
new file mode 100755
index 000000000..c2e476418
--- /dev/null
+++ b/1271/CH5/EX5.12/example5_12.sce
@@ -0,0 +1,10 @@
+clc
+// Given that
+L = 0.1 // length of fiber in km
+p = 5e-6 // power of signal in watt
+p_ = 1e-6 // power of signal inside the fiber in watt
+// Sample Problem 12 on page no. 5.20
+printf("\n # PROBLEM 12 # \n")
+alpha = (10 * log10(p / p_)) / L//calculation for absorption coefficient
+printf("\n Standard formula used \n alpha=10/L*log(Pi/Po).\n")
+printf("\n Absorption coefficient = %f dB/km. ",alpha)