summaryrefslogtreecommitdiff
path: root/2741/CH5/EX5.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH5/EX5.9
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 '2741/CH5/EX5.9')
-rwxr-xr-x2741/CH5/EX5.9/Chapter5_Example9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2741/CH5/EX5.9/Chapter5_Example9.sce b/2741/CH5/EX5.9/Chapter5_Example9.sce
new file mode 100755
index 000000000..d5bfaf9dd
--- /dev/null
+++ b/2741/CH5/EX5.9/Chapter5_Example9.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//Input data
+v=1;//The volume of an Ideal gas at N.T.P in m^3
+d=13.6;//The density of mercury in g/cm^3
+g=980;//Gravitational constant in gms/s^2
+p=76;//The pressure in cm of Hg
+R=8.31*10^7;//The Universal gas constant in ergs/g mol-K
+N=6.023*10^23;//The Avogadro number
+T=273;//The temperature at N.T.P in K
+
+//Calculations
+P=p*g*d;//The given pressure in dynes/cm^2
+x=(P*N*10^6)/(R*T);//Number of molecules in one cubic metre volume
+
+//Output
+printf('The number of molecules in one cubic metre of an ideal gas at N.T.P is x = %3.4g ',x)