summaryrefslogtreecommitdiff
path: root/3689/CH11/EX11.1/11_1.sce
blob: 5f89777340106045143466e019b9245172bd0a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
////
//Variable Declaration
aH = 0.770        //Activity of 
fH2 = 1.13        //Fugacity of Hydrogen gas
E0 = 0.0          //Std. electrode potential, V
n = 1.0           //Number of electrons transfered

//Calculations
E = E0 - (0.05916/n)*log(aH/sqrt(fH2))

//Results
printf("\n The potential of H+/H2 half cell %5.4f V",E)