summaryrefslogtreecommitdiff
path: root/3845/CH13/EX13.7/Ex13_7.sce
blob: 2f6c027f61aa8900231cb65977a31b2c7bc36555 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 13.7
T=0;//Temperature (C)
T=T+273;//Temperature (K)
P=1.01*10^5;//Pressure (Pa)
V=1;//Volume (m^3)
k=1.38*10^-23;//Boltzmann constant (J/K)
N=(P*V)/(k*T);//Number of molecules
printf('Number of molecules in 1 m^3 of gas at STP = %0.2e',N)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest