summaryrefslogtreecommitdiff
path: root/1646/CH3/EX3.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1646/CH3/EX3.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1646/CH3/EX3.2')
-rwxr-xr-x1646/CH3/EX3.2/Ch03Ex2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1646/CH3/EX3.2/Ch03Ex2.sce b/1646/CH3/EX3.2/Ch03Ex2.sce
new file mode 100755
index 000000000..c74579af9
--- /dev/null
+++ b/1646/CH3/EX3.2/Ch03Ex2.sce
@@ -0,0 +1,18 @@
+// Scilab Code Ex3.2 : Page:132 (2011)
+clc;clear;
+A = 32; // Gram atomic mass of oxygen, g/mol
+N_A = 6.023e+026; // Avogadro's number, per kmol
+m = A/N_A;....//mass of the molecule, kg
+k_B = 1.38e-23;....// Boltzmann constant, J/K
+T = 273;....// Temperature of the gas, K
+v_av = 1.59*sqrt(k_B*T/m);....// Average speed of oxygen molecule, m/s
+printf("\nThe average speed of oxygen molecule is = %3d m/s", v_av);
+v_rms = 1.73*sqrt(k_B*T/m);....// The mean square speed of oxygen molecule, m/s
+printf("\nThe root mean square speed of oxygen gas molecule is = %3d m/s", ceil(v_rms))
+v_mp = 1.41*sqrt(k_B*T/m);....// The most probable speed of oxygen molecule, m/s
+printf("\nThe most probable speed of oxygen molecule is = %3d m/s", ceil(v_mp));
+
+// Result
+// The average speed of oxygen molecule is = 423 m/s
+// The root mean square speed of oxygen gas molecule is = 461 m/s
+// The most probable speed of oxygen molecule is = 376 m/s