summaryrefslogtreecommitdiff
path: root/2495/CH8/EX8.9.7/Ex8_9_7.sce
blob: 6f27882249a04ce40f8202c26ce90345c923b4ef (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
26
27
28
29
30
31
clear
clc
E_RHE=(0.5335-(-2.363));//reduction reaction at RHE in V
RT_F=0.05915;//
E_LHE=((RT_F/2)*log10(0.1*0.2^2));//reduction reaction at LHE in V
Ecell=E_RHE-E_LHE;//cell reaction in V
printf('Ecell=%.4f V',Ecell)
E_RHE=(0.0-0.0713);//reduction reaction at RHE in V
RT_F=0.05915;//
E_LHE=((RT_F)*log10((0.5^(1/2))/(0.02*0.02)));//reduction reaction at LHE in V
Ecell=E_RHE-E_LHE;//cell reaction in V
printf('\nEcell=%.4f V',Ecell)
E_RHE=(0.337-(-0.441));//reduction reaction at RHE in V
RT_F=0.05915;//
E_LHE=((RT_F/2)*log10(0.05/0.01));//reduction reaction at LHE in V
Ecell=E_RHE-E_LHE;//cell reaction in V
printf('\nEcell=%.4f V',Ecell)
E_RHE=(0.0-0.0);//reduction reaction at RHE in V
RT_F=0.05915;//
E_LHE=((RT_F/2)*log10(6.43/0.127));//reduction reaction at LHE in V
Ecell=E_RHE-E_LHE;//cell reaction in V
printf('\nEcell=%.4f V',Ecell)
E_RHE=(-0.763-0.337);//reduction reaction at RHE in V
RT_F=0.05915;//
E_LHE=((RT_F/2)*log10((0.1^2)*0.732));//reduction reaction at LHE in V
Ecell=E_RHE+E_LHE;//cell reaction in V
printf('\nEcell=%.3f V',Ecell)

//There are some errors in the solution given in textbook
//page 455