From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1646/CH3/EX3.2/Ch03Ex2.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 1646/CH3/EX3.2/Ch03Ex2.sce (limited to '1646/CH3/EX3.2/Ch03Ex2.sce') 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 -- cgit