summaryrefslogtreecommitdiff
path: root/1619/CH2/EX2.2.4/Example2_2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1619/CH2/EX2.2.4/Example2_2_4.sce')
-rwxr-xr-x1619/CH2/EX2.2.4/Example2_2_4.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1619/CH2/EX2.2.4/Example2_2_4.sce b/1619/CH2/EX2.2.4/Example2_2_4.sce
new file mode 100755
index 000000000..10b7931c3
--- /dev/null
+++ b/1619/CH2/EX2.2.4/Example2_2_4.sce
@@ -0,0 +1,14 @@
+//Example 2.2.4 page 2.6
+
+clc;
+clear;
+z=12; //fibre length
+alpha = 1.5;
+p0= 0.3;
+pz= p0/10^(alpha*z/10);
+pz=pz*1000; //formatting pz in nano watts...
+printf("The power at the output of the cable is:%.2fx10^-9 W",pz);
+alpha_new= 2.5;
+pz=pz/1000; //pz in uWatts...
+p0_new= 10^(alpha_new*z/10)*pz;
+printf("\n\nThe Input power is %.2f uW",p0_new);