summaryrefslogtreecommitdiff
path: root/2219/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2219/CH1/EX1.2/Ex1_2.sce')
-rwxr-xr-x2219/CH1/EX1.2/Ex1_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2219/CH1/EX1.2/Ex1_2.sce b/2219/CH1/EX1.2/Ex1_2.sce
new file mode 100755
index 000000000..b5906cda2
--- /dev/null
+++ b/2219/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,14 @@
+// Chapter 1 example 2
+//------------------------------------------------------------------------------
+clc;
+clear;
+// Given data
+Rmax = 112; // Max permissable range in Kms
+H1 = 256; // Ht of the antenna in m
+// Calculations
+// Rmax = 4(sqrt(H1) + sqrt(H2));
+// H2 = ((Rmax/4)-sqrt(H1))^2;
+H2 = ((Rmax/4)-sqrt(H1))^2; // Ht of other antenna
+// Output
+mprintf('Height of other antenna = %d m',H2);
+//------------------------------------------------------------------------------