From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 914/CH7/EX7.22/ex7_22.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 914/CH7/EX7.22/ex7_22.sce (limited to '914/CH7/EX7.22/ex7_22.sce') 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); -- cgit