diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /884/CH19/EX19.9/Example19_9.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '884/CH19/EX19.9/Example19_9.sce')
-rwxr-xr-x | 884/CH19/EX19.9/Example19_9.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/884/CH19/EX19.9/Example19_9.sce b/884/CH19/EX19.9/Example19_9.sce new file mode 100755 index 000000000..07527a10c --- /dev/null +++ b/884/CH19/EX19.9/Example19_9.sce @@ -0,0 +1,24 @@ +//quantitative aspects of electrolysis
+
+clear;
+clc;
+
+printf("\t Example 19.9\n");
+
+t=7.44*3600;//time, sec
+A=1.26;//current in ampere
+q=A*t;//charge passed, coulomb
+F=96500;//faraday constant, J/V mol
+ne=q/F;//moles of electrons
+nO2=ne/4;//moles of oxygen
+nH2=ne/2;//moles of H2
+
+R=0.0821;//gas constant, L atm/K
+T=273;//temperature in Kelvin
+P=1;//pressure in atm
+VO2=nO2*R*T/P;//volume of oxygen gas generated
+VH2=nH2*R*T/P;//volume of H2 gas generated
+
+printf("\t the volume of O2 gas and H2 gas generated are : %4.2f L and %4.2f L respectively\n",VO2,VH2);
+
+//End
|