summaryrefslogtreecommitdiff
path: root/1427/CH6/EX6.7/6_7.sce
blob: ac8ec62d801901f7d1d41642e9f6b4e456e3dbcc (plain)
1
2
3
4
5
6
7
8
9
10
//ques-6.7
//Calculating reduction potential for reduction of oxygen
clc
pH=7;
p=0.2;//partial pressure of O2 (in bar)
Es=1.229;//standard emf (in V)
H=10^(-pH);//concentration of hydrogen ion
n=2;//number of electrons
E=Es-(0.0592/n)*log10(1/(H^2*sqrt(p)));
printf("the reduction potential required is %.3f V.",E);