summaryrefslogtreecommitdiff
path: root/3773/CH23/EX23.1/Ex23_1.sce
blob: dec2df23743ceaa013acb2db8b370c1ecc18a283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Chapter 23: Ground Wave Propagation
//Example 23-1.1
clc;

//Variable Initialization
f1 = 0.1      //Frequency (MHz)
f2 = 1.0        //Frequency (MHz)
f3 = 10.0       //Frequency (MHz)

//Calculation
d1 = 50/(f1**(1.0/3)) //Distance for f1 (miles)
d2 = 50/(f2**(1.0/3)) //Distance for f2 (miles)
d3 = 50/(f3**(1.0/3)) //Distance for f3 (miles)

//Result
mprintf( "The distance for 100kHz is %.2f miles",d1)
mprintf( "\nThe distance for 1MHz is %d miles", d2)
mprintf( "\nThe distance for 10MHz is %.2f miles", d3)