summaryrefslogtreecommitdiff
path: root/2510/CH5/EX5.6/Ex5_6.sce
blob: 05d1ba940c5a140f4841530c8d262c47b670d610 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Variable declaration:
P = 1.2                         //Abslute pressure of gas (psia)
MW = 29                         //Molecular weight of gas (g/gmol)
R = 82.06                       //Universal gas constant (atm.cm^3/gmol.K)
T = 20+273                      //Temperature in Kelvin (K)

//Calculation:
p = P*MW/R/T                    //Dendity of gas (g/cm^3)

//Result:
printf("The density of given gas is : %.5f g/cm^3",p)