summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.42
diff options
context:
space:
mode:
Diffstat (limited to '944/CH5/EX5.42')
-rwxr-xr-x944/CH5/EX5.42/example5_42_TACC.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/944/CH5/EX5.42/example5_42_TACC.sce b/944/CH5/EX5.42/example5_42_TACC.sce
new file mode 100755
index 000000000..5e5cea63a
--- /dev/null
+++ b/944/CH5/EX5.42/example5_42_TACC.sce
@@ -0,0 +1,31 @@
+//example 5.42
+
+clear;
+clc;
+
+//Given:
+disp("Zn(s)|ZnCl2(soln)||AgCl(s)|Ag-Ag|AgCl(s)|ZnCl2(soln)|Zn(s)");
+m1=0.02;//concentration[M]
+Y1=0.65;//mean ionic activity coefficient
+m2=1.5;//concentration[M]
+Y2=0.29;//mean ionic activity coefficient
+R=8.314;//Universal gas constant[J/K/mol]
+T=298;//Temperature [K]
+F=96500;//Faraday's constant[coulomb/mol]
+
+//To find the overall e.m.f of the above cell
+E=R*T*(log(m2*Y2/m1/Y1))*3/2/F;//[volts]
+printf("The overall e.m.f of the cell is %f volts",E);
+
+
+
+
+
+
+
+
+
+
+
+
+