summaryrefslogtreecommitdiff
path: root/2414/CH16/EX16.1/Ex16_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2414/CH16/EX16.1/Ex16_1.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 '2414/CH16/EX16.1/Ex16_1.sce')
-rwxr-xr-x2414/CH16/EX16.1/Ex16_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2414/CH16/EX16.1/Ex16_1.sce b/2414/CH16/EX16.1/Ex16_1.sce
new file mode 100755
index 000000000..3129598a9
--- /dev/null
+++ b/2414/CH16/EX16.1/Ex16_1.sce
@@ -0,0 +1,20 @@
+clc;
+close();
+clear();
+//page no 518
+//prob no. 16.1
+c=3*10^8; //speed of light
+Pt=5 //W
+GtdB=13; //dB
+GrdB=17; //dB
+d=80*10^3; //metre
+f=3*10^9; //frequency
+lembda=c/f; //wavelength
+mprintf('The wavelength is, = %.1f m\n',lembda);
+
+Gt=10^(GtdB/10);
+Gr=10^(GrdB/10);
+mprintf(' Gt=%.2f \n',Gt);
+mprintf(' Gr=%.2f \n',Gr);
+Pr=lembda^2*Gt*Gr*Pt/((4*%pi)^2*d^2);
+mprintf(' Pr=%.1f pW \n',Pr*10^12);