summaryrefslogtreecommitdiff
path: root/1286/CH8/EX8.3/8_3.sce
blob: d956e7004d9152c0b008b16794cddac2233f076a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
//initialisation of variables
r=1/20
p1=1//atm
g=1.4
T1=273//k
//CALCULATIONS
p2=p1/r
pad=p2^g
T2=T1*((1/r)^(g-1))
dt=T2-T1
//RESULTS
printf(' \n pressure required= % 1f atm',p2)
printf(' \n pressure for adiabatic conditions= % 1f atm',pad)
printf(' \n rise in temperature= % 1f c',dt)