summaryrefslogtreecommitdiff
path: root/2783/CH10/EX10.3/Ex10_3.sce
blob: 3b823ade911a0ca2dced3093026aecfa7aef37ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
//initialization of new variables
clear
M=1
T0=300 //k
P0=4 //atm
gama=1.4
//calculations
Tr=1+(gama-1)*M^2/2
Pr=Tr^(gama/(gama-1))
P=P0/Pr
T=T0/Tr
//results
printf('At the section:')
printf('\n Pressure is %.2f atm',P)
printf('\n Temperature is %.2f K',T)