summaryrefslogtreecommitdiff
path: root/2465/CH10/EX10.12/Example_12.sce
blob: 8b2460a55ab05423aee4ba1d945011131f6a3a68 (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
//Chapter-10,Example 12,Page 255
clc();
close();

R=8.316    //gas constant

F=96500    //Farade's constant

n=1

T=298      //temperature in Kelvin

E0_AgCl=-0.2223   

E0_Ag=0.798

//cell reaction...Ag + Cl- <----> AgCl

E0_cell =E0_Ag + E0_AgCl

//at equilibrium two electrode potential s will be equal
//   E0_cell = (2.303*R*T/n*F)*log10(K)

Ksp = 10^-(E0_cell*n*F/(2.303*R*T))

printf('for AgCl solution Ksp = ')

disp(Ksp)

printf('    mol^2/l^2')