diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /914/CH7/EX7.22/ex7_22.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '914/CH7/EX7.22/ex7_22.sce')
-rwxr-xr-x | 914/CH7/EX7.22/ex7_22.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/914/CH7/EX7.22/ex7_22.sce b/914/CH7/EX7.22/ex7_22.sce new file mode 100755 index 000000000..58cd4271f --- /dev/null +++ b/914/CH7/EX7.22/ex7_22.sce @@ -0,0 +1,15 @@ +clc;
+warning("off");
+printf("\n\n example7.22 - pg321");
+// given
+To=545.67; //[degR] - air temperature at beach level
+betaa=-0.00357; //[degR/ft] - constant
+R=1545; //[Torr*ft^3/degR*mole] - gas constant
+M=29;
+deltaz=25000; //[ft]
+// using the equation ln(p/po)=((M)/(R*betaa))*ln(To/(To+betaa*deltaz)
+p=po*exp(((M)/(R*betaa))*log(To/(To+betaa*deltaz)));
+printf("\n\n p=%fTorr",p);
+// using the equation T=To+betaa*deltaz
+T=To+betaa*deltaz;
+printf("\n\n T=%fdegR",T);
|