import math
# Given data
R = 1.2; #ratio of free space wavelength of a microwave signal to its wavelength when prop. through a dielectric medium
# Calculations
# lamda = lamda0/sqrt(er);
# er = (lamda0/lamda)**2;
#let lamda0/lamda = R
er = (R)**2; # Dielectric constant of medium
#Output
print'The Dielectric constant of medium = %3.2f'%er;
import math
#Given data
Rmax = 112; # Max permissable range in Kms
H1 = 256; # Ht of the antenna in m
# Calculations
#Rmax = 4(math.sqrt(H1) + math.sqrt(H2));
# H2 = ((Rmax/4)-math.sqrt(H1))**2;
H2 = ((Rmax/float(4))-math.sqrt(H1))**2; # Ht of other antenna
# Output
print'Height of other antenna = %d m'%H2;