summaryrefslogtreecommitdiff
path: root/914/CH7/EX7.22
diff options
context:
space:
mode:
Diffstat (limited to '914/CH7/EX7.22')
-rwxr-xr-x914/CH7/EX7.22/ex7_22.sce15
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);