summaryrefslogtreecommitdiff
path: root/944/CH5/EX5.43
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /944/CH5/EX5.43
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 '944/CH5/EX5.43')
-rwxr-xr-x944/CH5/EX5.43/example5_43_TACC.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/944/CH5/EX5.43/example5_43_TACC.sce b/944/CH5/EX5.43/example5_43_TACC.sce
new file mode 100755
index 000000000..de6ac8496
--- /dev/null
+++ b/944/CH5/EX5.43/example5_43_TACC.sce
@@ -0,0 +1,27 @@
+//example 5.43
+
+clear;
+clc;
+
+//Given:
+disp("H2(g,1atm)|HCl(aq)|HCl(aq)|H2(g,1atm)");
+m1=0.02;//concentration[M]
+Y1=0.88;//mean ionic activity coefficient
+m2=1;//concentration[M]
+Y2=0.81;//mean ionic activity coefficient
+R=8.314;//universal gas constant[J/K/mol]
+T=298;//Temperature[K]
+F=96487;//Faraday's constant[coulombs/mol]
+t=0.178;//Tranference number of Cl-1
+
+//To find the e.m.f of the cell
+E=-2*t*R*T*(log(m1*Y1/m2/Y2))/F;//e.m.f of the cell[volts]
+printf("The e.m.f of the cell is %f volts",E);
+
+
+
+
+
+
+
+