summaryrefslogtreecommitdiff
path: root/3718/CH6/EX6.11/Ex6_11.sce
blob: 4ecbc9dd0125c44d99a0f0ad754b9127351be803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Chapter 6: Electrochemistry
//Problem: 11
clc;

//Declaration of Variables
pH = 7        // O2
Eo = 1.229    // V
pO2 = 0.20    // bar

// Solution
mprintf("Nernst equation at 25C is,\n")
mprintf(" E = Eo - (0.0592 / 2) * log(1 / ([H+]^2 * [pO2]^ (1/2)))\n")

E = Eo - (0.0592 / 2) * log10(1.0 / (((10 ** (- 7)) ** 2) * (pO2 ** (1 / 2.0))))

mprintf(" The reduction potential for the reduction is %.3f V",E)

// The answer provided in the textbook is wrong