summaryrefslogtreecommitdiff
path: root/3648/CH10/EX10.5/Ex10_5.sce
blob: b3b6e760bf7113b4f4d7341a46bb85f86d1ed2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 10_5
clc();
clear;
//To find the gas pressure in the container
v=5*10^-3   //units in meter^3
t=300    //units in K
m1=14*10^-6 //Units in Kg
M=28  //Units in Kg/Kmol  
n=m1/M  //units in K mol
R=8314    //units in J/Kmol K
p=(n*R*t)/v    //units in Meter^3/Kmol
printf("The pressure in the container is P=%d Pa",p)