summaryrefslogtreecommitdiff
path: root/3718/CH6/EX6.11/Ex6_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '3718/CH6/EX6.11/Ex6_11.sce')
-rw-r--r--3718/CH6/EX6.11/Ex6_11.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3718/CH6/EX6.11/Ex6_11.sce b/3718/CH6/EX6.11/Ex6_11.sce
new file mode 100644
index 000000000..4ecbc9dd0
--- /dev/null
+++ b/3718/CH6/EX6.11/Ex6_11.sce
@@ -0,0 +1,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