summaryrefslogtreecommitdiff
path: root/3845/CH13/EX13.9/Ex13_9.sce
blob: 6336127fd9c7fd0e371a5503e197a2118c3f793d (plain)
1
2
3
4
5
6
7
8
9
10
//Example 13.9
P=7*10^5;//Pressure (Pa)
V=2*10^-3;//Volume (m^3)
T=18;//Temperature (C)
T=T+273;//Temperature (K)
R=8.31;//Ideal gas constant (J/(mol.K))
n=(P*V)/(R*T);//Moles (mol)
printf('Number of moles = %0.3f mol',n)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest