summaryrefslogtreecommitdiff
path: root/3428/CH21/EX14.21.2/Ex14_21_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /3428/CH21/EX14.21.2/Ex14_21_2.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '3428/CH21/EX14.21.2/Ex14_21_2.sce')
-rw-r--r--3428/CH21/EX14.21.2/Ex14_21_2.sce10
1 files changed, 5 insertions, 5 deletions
diff --git a/3428/CH21/EX14.21.2/Ex14_21_2.sce b/3428/CH21/EX14.21.2/Ex14_21_2.sce
index 0c4b82950..53754e614 100644
--- a/3428/CH21/EX14.21.2/Ex14_21_2.sce
+++ b/3428/CH21/EX14.21.2/Ex14_21_2.sce
@@ -2,11 +2,11 @@
//To calculate the number of gas molecules left.
clc;
//PV=nRT
-P=(10^-5*(1/760))
-V=(10^-3*(1/1000))
-R=0.0821
-T=298
-n=((P*V)/(R*T))
+P=(10^-5*(1/760)) //atm
+V=(10^-3*(1/1000)) //L
+R=0.0821 //LatmK^-1mol^-1
+T=298 //K
+n=((P*V)/(R*T)) //moles
N_a=6.023*10^23 //1 mole gas=6.023*10^23 molecules
N=n*N_a
disp(N,'No. of gas molecules left')