blob: e6f950fa8e6fd1d0d653391418a25fb4132c4915 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
|