summaryrefslogtreecommitdiff
path: root/884/CH19/EX19.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /884/CH19/EX19.6
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 '884/CH19/EX19.6')
-rwxr-xr-x884/CH19/EX19.6/Example19_6.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/884/CH19/EX19.6/Example19_6.sce b/884/CH19/EX19.6/Example19_6.sce
new file mode 100755
index 000000000..c1b322247
--- /dev/null
+++ b/884/CH19/EX19.6/Example19_6.sce
@@ -0,0 +1,27 @@
+//computation of standard free energy change for a reaction
+
+clear;
+clc;
+
+printf("\t Example 19.6\n");
+
+n=2;
+F=96500;//faraday constant, J/V mol
+
+Co2=0.15;//conc of Co2+ ions, M
+Fe2=0.68;//conc of Fe2+ ions, M
+
+E0cathode=-0.44;//standard electrode potential of cathode(Fe2+/Fe), V
+E0anode=-0.28;//standard electrode potential of anode(Co2+/Co), V
+
+E0cell=E0cathode-E0anode;//standard emf of the cell, V
+
+Ecell=E0cell-0.0257/2*log(Co2/Fe2);//calculation of cell potential at non standard conditions, V
+
+if(Ecell>0) then
+ printf("\t the reaction would proceed spontaneously in the direction written \n");
+else
+ printf("\t the reaction is not spontaneously in the direction written \n");
+ end;
+
+//End