summaryrefslogtreecommitdiff
path: root/2863/CH2/EX2.34/ex2_34.sce
diff options
context:
space:
mode:
Diffstat (limited to '2863/CH2/EX2.34/ex2_34.sce')
-rwxr-xr-x2863/CH2/EX2.34/ex2_34.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2863/CH2/EX2.34/ex2_34.sce b/2863/CH2/EX2.34/ex2_34.sce
new file mode 100755
index 000000000..b7952974e
--- /dev/null
+++ b/2863/CH2/EX2.34/ex2_34.sce
@@ -0,0 +1,12 @@
+//chapter 2
+printf("\n");
+Rrad=72;
+Rloss=8;
+Gp=16;
+n=Rrad/(Rrad+Rloss);
+printf("the radiation efficiency is %g",n);
+Gp=16;
+Gd=Gp/n;
+Gddb=10*log10(Gd);
+printf("\nthe directive gain is %g",Gd);
+printf("\nthe directive gain in db is %gdb",Gddb);