From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1619/CH2/EX2.2.4/Example2_2_4.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1619/CH2/EX2.2.4/Example2_2_4.sce (limited to '1619/CH2/EX2.2.4') 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); -- cgit