diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1619/CH2/EX2.2.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1619/CH2/EX2.2.1')
-rwxr-xr-x | 1619/CH2/EX2.2.1/Example2_2_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
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);
|