summaryrefslogtreecommitdiff
path: root/3825/CH6/EX6.11/Ex6_11.sce
blob: b1391983d29c8f796161c3173973c8dcb0eae197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
Pf=30*10^5 //pressure in pascal
P0=50*10^5 //pressure in pascal
T0=300 //temperature in Kelvin
gama=1.4
Tf=T0*((Pf/P0)^((gama-1)/gama))
mprintf("Tf=%fK\n",Tf)//ans vary due to roundoff error
V=0.1 //volumme in metre-cube
M=28.97*10^-3 //molar mass of air
R=8.314
mprintf("m0-mf=%fkg",(M*V/R)*((P0/T0)-(Pf/Tf)))//ans vary due to roundoff error