diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3739/CH3/EX3.1 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3739/CH3/EX3.1')
-rw-r--r-- | 3739/CH3/EX3.1/EX3_1.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/3739/CH3/EX3.1/EX3_1.sce b/3739/CH3/EX3.1/EX3_1.sce new file mode 100644 index 000000000..c9c7910c8 --- /dev/null +++ b/3739/CH3/EX3.1/EX3_1.sce @@ -0,0 +1,30 @@ +//Chapter 3, Example 3.1, page 61
+clc
+//Initialisation
+h=2 //height in Km
+h1=5 //height in Km
+
+
+//Calculation
+t2=290-(6.5*h) //Proposed formula for height h=2Km
+p2=950-117*h
+e2=8-3*h
+t21=294.98-5.22*h-0.007*h**2
+p21=1012.82-111.56*h+3.86*h**2
+p=14.35*2.72**(-0.42*h-0.02*h*h+0.001*h**3)
+
+t5=290-6.5*h1 //proposed formula for height h=5Km
+p5=950-117*h1
+e5=8-3*h1
+t51=294.98-5.22*h1-0.007*h1**2
+p51=1012.82-111.56*h1+3.86*h1**2
+p1=14.35*2.72**(-0.42*h1-0.02*h1**2+0.001*h1**3)
+
+
+//Results
+printf("T(2) = %.1f K",t21)
+printf("\nP(2) = %.2f hpa",p21)
+printf("\np(2) = %.2f hpa",p)
+printf("\nT(5) = %.1f K",t51)
+printf("\nP(5) = %.2f hpa",p51)
+printf("\np(5) = %.2f hpa",p1)
|