summaryrefslogtreecommitdiff
path: root/3875/CH9
diff options
context:
space:
mode:
Diffstat (limited to '3875/CH9')
-rw-r--r--3875/CH9/EX9.2/Ex9_2.sce13
-rw-r--r--3875/CH9/EX9.5/Ex9_5.sce4
2 files changed, 9 insertions, 8 deletions
diff --git a/3875/CH9/EX9.2/Ex9_2.sce b/3875/CH9/EX9.2/Ex9_2.sce
index 68d3e7d4d..1a9d85d31 100644
--- a/3875/CH9/EX9.2/Ex9_2.sce
+++ b/3875/CH9/EX9.2/Ex9_2.sce
@@ -5,10 +5,11 @@ L1=2 //distance in km
L2=6 //distance in km
//calculation
-//Case(a):when distance is 2km
-It_by_I0=10^-((alpha*L1)/10)
-mprintf("\nThe fraction of intial intensity that will remain after 2km is = %1.3f\n",It_by_I0)
+//Case(a):when distance L = 2km
+It_by_I0_1=10^-((alpha*L1)/10)
-//Case(b):when distance is 6km
-It_by_I0=10^-((alpha*L2)/10)
-mprintf("\nThe fraction of intial intensity that will remain after 2km is = %1.3f",It_by_I0) //The answer varies due to round off error.
+//Case(b):when distance L = 6km
+It_by_I0_2=10^-((alpha*L2)/10)
+
+mprintf("\nThe fraction of intial intensity that will remain after 2km is = %1.3f\n",It_by_I0_1) //The answer varies due to round off error.
+mprintf("\nThe fraction of intial intensity that will remain after 6km is = %1.3f",It_by_I0_2) //The answer varies due to round off error.
diff --git a/3875/CH9/EX9.5/Ex9_5.sce b/3875/CH9/EX9.5/Ex9_5.sce
index 6b178a2fc..3b5210027 100644
--- a/3875/CH9/EX9.5/Ex9_5.sce
+++ b/3875/CH9/EX9.5/Ex9_5.sce
@@ -5,7 +5,7 @@ I_0=7.5*10^-6 //input power in Watt
I_t=8.6*10^-6 //output power in Watt
//calculation
-alpha=-(10/0.5)*log10(I_0/I_t)
+alpha=-(10/L)*log10(I_0/I_t)
-mprintf("The loss specification of the fibre is = %1.1f dB/km",alpha)
+mprintf("The loss specification of the fibre is = -%1.1f dB/km",alpha)
//The answer varies dur to round off error.