summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.37/18_37.sce
blob: 8fb61c2f5133ccfe3f70ab41c423528620faa7d4 (plain)
1
2
3
4
5
6
7
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);