summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.37/18_37.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH18/EX18.37/18_37.sce')
-rw-r--r--1427/CH18/EX18.37/18_37.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1427/CH18/EX18.37/18_37.sce b/1427/CH18/EX18.37/18_37.sce
new file mode 100644
index 000000000..8fb61c2f5
--- /dev/null
+++ b/1427/CH18/EX18.37/18_37.sce
@@ -0,0 +1,8 @@
+//ques-18.37
+//Calculating final temperature of the gas
+clc
+q=1.42;
+r=20;//ratio = P2/P1
+T1=273;//initial temperature (in K)
+T2=T1/(r^((1-q)/q));
+printf("Final temperature is %.1f K.",T2);