summaryrefslogtreecommitdiff
path: root/3825/CH6/EX6.7/Ex6_7.sce
blob: 837aebb674139355198c3d45e9b00042fb89581d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
T=300 //temperature in Kelvin
gama=1.4
Tf=gama*T
mprintf("Tf=%iK\n",Tf)
P=50*10^5 //pressure in Pascals
V=0.1 //volume in metre-cube
R=8.314
N=(P*V)/(R*Tf)
mprintf("N=%f\n",N)//ans vary due to roundoff error
molmass=28.97 //molar mass of air 
mprintf("Mass of air filled in cylinder=%fkg",N*molmass*10^-3)//ans vary due to roundoff error