summaryrefslogtreecommitdiff
path: root/2863/CH2/EX2.2/ex2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2863/CH2/EX2.2/ex2_2.sce')
-rwxr-xr-x2863/CH2/EX2.2/ex2_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2863/CH2/EX2.2/ex2_2.sce b/2863/CH2/EX2.2/ex2_2.sce
new file mode 100755
index 000000000..f5c293b4e
--- /dev/null
+++ b/2863/CH2/EX2.2/ex2_2.sce
@@ -0,0 +1,14 @@
+//chapter 2
+//formula etta=Prad/Prad+Ploss=Rrad/Rrad+Rloss
+printf("\n");
+Rrad=72;
+printf("radiation resistance is %dohm",Rrad);
+Rloss=8;
+ettar=72/(72+8);
+printf("\nthe Loss resistance is %dohm",Rloss);
+Gpmax=30;
+printf("\nthe power gain of antenna is %d",Gpmax);
+Gdmax=Gpmax/ettar;
+Gdmax1=10 *log10(Gdmax);//in db
+printf("\nthe Directivity gain is %g",Gdmax);
+printf("\nthe Directivity gain in db is given by %edb",Gdmax1);