diff options
Diffstat (limited to '3739/CH3/EX3.2/EX3_2.sce')
-rw-r--r-- | 3739/CH3/EX3.2/EX3_2.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3739/CH3/EX3.2/EX3_2.sce b/3739/CH3/EX3.2/EX3_2.sce new file mode 100644 index 000000000..675268f62 --- /dev/null +++ b/3739/CH3/EX3.2/EX3_2.sce @@ -0,0 +1,19 @@ +//Chapter 3, Example 3.2, page 63
+clc
+
+//Initialisation
+h=2 //Height in Km
+T=277 //Tempreture in Kelvin
+p=716
+e=2
+
+
+//Calculation
+er=1+(151.1/T)*(p+(4810*h/T))*10**-6
+n=er**(0.515) //refractive index of the air
+N=(n-1)*10**6 //refractivity number
+
+
+//Results
+printf("n = %.5f",n)
+printf("\nN = %d",N)
|