diff options
Diffstat (limited to '3875/CH9/EX9.2/Ex9_2.sce')
-rw-r--r-- | 3875/CH9/EX9.2/Ex9_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3875/CH9/EX9.2/Ex9_2.sce b/3875/CH9/EX9.2/Ex9_2.sce new file mode 100644 index 000000000..68d3e7d4d --- /dev/null +++ b/3875/CH9/EX9.2/Ex9_2.sce @@ -0,0 +1,14 @@ +clc;
+clear;
+alpha=2.2 //attenuation of light in dB/km
+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(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.
|