summaryrefslogtreecommitdiff
path: root/2465/CH10/EX10.3/Example_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2465/CH10/EX10.3/Example_3.sce')
-rw-r--r--2465/CH10/EX10.3/Example_3.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2465/CH10/EX10.3/Example_3.sce b/2465/CH10/EX10.3/Example_3.sce
new file mode 100644
index 000000000..e6f950fa8
--- /dev/null
+++ b/2465/CH10/EX10.3/Example_3.sce
@@ -0,0 +1,25 @@
+//Chapter-10,Example 3,Page 252
+clc();
+close();
+
+//Cell reaction is ...Zn+2 +2Ag <----> Zn + 2Ag+
+
+E0_Zn=-0.762 //standard electrode potential for Zn
+
+E0_Ag=0.798 //standard electrode potential for Ag
+
+R=8.314 //gas constant
+
+F=96500 //Farade's constant
+
+n=2
+
+T=298 //temperature in Kelvin
+
+Zn= 0.2
+
+Ag= 0.1
+
+E_cell= (E0_Zn + (R*T/(n*F))*log(Zn))-(E0_Ag + (R*T/(n*F))*log(Ag^2))
+
+printf('the cell voltage at 25 degree is %.3f V',E_cell)