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.1/Example2_2_1.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1619/CH2/EX2.2.1/Example2_2_1.sce (limited to '1619/CH2/EX2.2.1') diff --git a/1619/CH2/EX2.2.1/Example2_2_1.sce b/1619/CH2/EX2.2.1/Example2_2_1.sce new file mode 100755 index 000000000..93adc6463 --- /dev/null +++ b/1619/CH2/EX2.2.1/Example2_2_1.sce @@ -0,0 +1,14 @@ +// Example 2.2.1 page 2.4 + +clc; +clear; + +alpha= 3; // average loss Power decreases by 50% so P(0)/P(z)= 0.5 +lamda= 900*10^-9; //wavelength +z= 10*log10(0.5)/alpha; //z is the length +z= z*-1; +printf("The length over which power decreases by 50%% is =%.2f Kms",z); + +z1= 10*log10(0.25)/alpha; //Power decreases by 75% so P(0)/P(z)= 0.25 +z1=z1*-1; //as distance cannot be negative... +printf("\n\nThe length over which power decreases by 75%% is =%.2f Kms",z1); -- cgit