summaryrefslogtreecommitdiff
path: root/1571/CH8/EX8.5/Chapter8_Example5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1571/CH8/EX8.5/Chapter8_Example5.sce')
-rwxr-xr-x1571/CH8/EX8.5/Chapter8_Example5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1571/CH8/EX8.5/Chapter8_Example5.sce b/1571/CH8/EX8.5/Chapter8_Example5.sce
new file mode 100755
index 000000000..481a36360
--- /dev/null
+++ b/1571/CH8/EX8.5/Chapter8_Example5.sce
@@ -0,0 +1,15 @@
+clc
+clear
+
+//INPUT
+p1=2;//pressure initial in atm
+p2=1;//pressure final in atm
+t1=288;//inital temperature in K
+y=1.4;//coefficent of expansion
+
+//CALCULATIONS
+t2=t1*(p2/p1)^((y-1)/y);//final temperature in K
+dt=t1-t2;//drop in temperature in K
+
+//OUTPUT
+mprintf('drop in temperature is %3.2f K',dt)