diff options
Diffstat (limited to '884/CH19/EX19.7')
-rwxr-xr-x | 884/CH19/EX19.7/Example19_7.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/884/CH19/EX19.7/Example19_7.sce b/884/CH19/EX19.7/Example19_7.sce new file mode 100755 index 000000000..86597ce70 --- /dev/null +++ b/884/CH19/EX19.7/Example19_7.sce @@ -0,0 +1,23 @@ +//computation of concentration of component from cell potential
+
+clear;
+clc;
+
+printf("\t Example 19.7\n");
+
+n=2;
+
+Zn=1;//conc of Zn2+ ions, M
+pH2=1;//pressure of H2 gas, atm
+
+Ecell=0.54;//emf of the cell, V
+
+E0cell=0.76;//standard emf of the cell, V
+
+Q=exp(-(Ecell-E0cell)*2/0.0257);//since Ecell=E0cell-0.0257/2*log(Q) where Q=(Zn2+)*pH2/(H+)^2
+
+H=sqrt(Zn*pH2/Q);//the conc of H+ ions, M
+
+printf("\t the molar concentration of H+ ion is : %2.0f*10^-4 M \n",H*10^4);
+
+//End
|