summaryrefslogtreecommitdiff
path: root/3718/CH6/EX6.3/Ex6_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3718/CH6/EX6.3/Ex6_3.sce')
-rw-r--r--3718/CH6/EX6.3/Ex6_3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3718/CH6/EX6.3/Ex6_3.sce b/3718/CH6/EX6.3/Ex6_3.sce
new file mode 100644
index 000000000..7bedec041
--- /dev/null
+++ b/3718/CH6/EX6.3/Ex6_3.sce
@@ -0,0 +1,17 @@
+//Chapter 6: Electrochemistry
+//Problem: 3
+clc;
+
+//Declaration of Constant
+R = 8.314 //in J per K
+F = 96500 //in C per mol
+
+//Declaration of Variables
+Cu = 0.15 //in M
+Eo = 0.34 //in V
+T = 298 //in K
+n = 2 //in moles
+
+// Solution
+E = Eo + (2.303 * R * T) / (n * F) * log10(Cu)
+mprintf("The single electrode potential for copper metal is %.4f V",E)