summaryrefslogtreecommitdiff
path: root/2863/CH2/EX2.37/ex2_37.sce
diff options
context:
space:
mode:
Diffstat (limited to '2863/CH2/EX2.37/ex2_37.sce')
-rwxr-xr-x2863/CH2/EX2.37/ex2_37.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2863/CH2/EX2.37/ex2_37.sce b/2863/CH2/EX2.37/ex2_37.sce
new file mode 100755
index 000000000..bcaf36978
--- /dev/null
+++ b/2863/CH2/EX2.37/ex2_37.sce
@@ -0,0 +1,16 @@
+//chapter 2
+//part a
+printf("\n");
+c=3*10^8;
+f=100*10^6;
+lamda=c/f;
+printf("the wavelength is %dm",lamda);
+//part b
+Gt=15.8489//antilog(12/10)
+Pt=10^-1;
+Pr=10^-9;
+d=384.4*10^6;//238857*1609.35
+Gr=(((4*(%pi)*d)/lamda)^2*Pr)/(Pt*Gt);
+printf("\nthe gain of receiver is %g",Gr);
+Grdb=10*log10(Gr);
+printf("\nthe gain of receiver in db is %gdb",Grdb);