diff options
Diffstat (limited to '3875/CH9/EX9.7/Ex9_7.sce')
-rw-r--r-- | 3875/CH9/EX9.7/Ex9_7.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/3875/CH9/EX9.7/Ex9_7.sce b/3875/CH9/EX9.7/Ex9_7.sce new file mode 100644 index 000000000..cb718eea2 --- /dev/null +++ b/3875/CH9/EX9.7/Ex9_7.sce @@ -0,0 +1,9 @@ +clc;
+clear;
+alpha=-0.5 //attenuation in dB/km
+I_t=2*10^-6 //input power in W
+I_o=1.5*10^-3 //output power in W
+
+//calculation
+L=-(10/0.5)*log10(I_t/I_o)
+mprintf("The length of the fibre is = %2.1f km.",L)
|