summaryrefslogtreecommitdiff
path: root/854/CH11/EX11.4/Example11_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /854/CH11/EX11.4/Example11_4.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '854/CH11/EX11.4/Example11_4.sce')
-rwxr-xr-x854/CH11/EX11.4/Example11_4.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/854/CH11/EX11.4/Example11_4.sce b/854/CH11/EX11.4/Example11_4.sce
new file mode 100755
index 000000000..f23338858
--- /dev/null
+++ b/854/CH11/EX11.4/Example11_4.sce
@@ -0,0 +1,23 @@
+//clear//
+//Caption:Program to find the output power and attenuation coefficient
+//Example11.4
+//page349
+clear;
+clc;
+close;
+z = 20; //distance in meters
+Pz_P0_dB = -2; //fraction of power drop in dB
+Pz_P0 = 10^(Pz_P0_dB/10);
+disp(Pz_P0,'Fraction of input power reaches output P(z)/P(0)=')
+P0_mid_dB = -1; //fraction of power drop at midpoint in dB
+P0_mid = 10^(P0_mid_dB/10);
+disp(P0_mid,'Fraction of the input power reaches the midpoint P(10)/P(0)=')
+alpha = -Pz_P0_dB/(8.69*z);
+disp(alpha,'attenuation in Np/m alpha=')
+//Result
+//Fraction of input power reaches output P(z)/P(0)=
+// 0.6309573
+//Fraction of the input power reaches the midpoint P(10)/P(0)=
+// 0.7943282
+//attenuation in Np/m alpha=
+// 0.0115075