summaryrefslogtreecommitdiff
path: root/3773/CH23/EX23.3/Ex23_3.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3773/CH23/EX23.3/Ex23_3.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3773/CH23/EX23.3/Ex23_3.sce')
-rw-r--r--3773/CH23/EX23.3/Ex23_3.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3773/CH23/EX23.3/Ex23_3.sce b/3773/CH23/EX23.3/Ex23_3.sce
new file mode 100644
index 000000000..9517c2d74
--- /dev/null
+++ b/3773/CH23/EX23.3/Ex23_3.sce
@@ -0,0 +1,22 @@
+//Chapter 23: Ground Wave Propagation
+//Example 23-2.2
+clc;
+
+//Variable Initialization
+f = 10e6 //Frequency (Hz)
+sigma = 5 //Standard deviation of surface irregularities (unitless)
+theta1 = 30 //Angle of incidence as measured from normal angle (degrees)
+theta2 = 45 //Angle of incidence as measured from normal angle (degrees)
+theta3 = 60 //Angle of incidence as measured from normal angle (degrees)
+c = 3e8 //Speed of light (m/s)
+
+//Calculations
+wave_lt = c/f //Wavelength (m)
+R1 = 4*%pi*sigma*sin(theta1*%pi/180)/wave_lt //Roughness factor for theta1 (unitless)
+R2 = 4*%pi*sigma*sin(theta2*%pi/180)/wave_lt //Roughness factor for theta2 (unitless)
+R3 = 4*%pi*sigma*sin(theta3*%pi/180)/wave_lt //Roughness factor for theta3 (unitless)
+
+//Result
+mprintf( "The roughness factor for 30 degrees is %.4f", R1)
+mprintf( "\nThe roughness factor for 45 degrees is %.3f", R2)
+mprintf( "\nThe roughness factor for 60 degrees is %.4f", R3)