summaryrefslogtreecommitdiff
path: root/3845/CH13/EX13.9
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH13/EX13.9')
-rw-r--r--3845/CH13/EX13.9/Ex13_9.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3845/CH13/EX13.9/Ex13_9.sce b/3845/CH13/EX13.9/Ex13_9.sce
new file mode 100644
index 000000000..6336127fd
--- /dev/null
+++ b/3845/CH13/EX13.9/Ex13_9.sce
@@ -0,0 +1,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