summaryrefslogtreecommitdiff
path: root/3876/CH16/EX16.1/Ex16_1.sce
blob: 7672f8477ddb0589904a1298fa097f62c0f88e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//Chapter 16 Oxidation Reduction Potentials

clc;
clear;

//Initialisation of Variables
x= 0.02 //m
y= 0.4 //m
R= 0.0592
e= -0.771 //V
e1= -1.520 //v
n= 5 //electrons
z= 0.80 //m
z1= 0.5 //m

//CALCULATIONS
E= e-R*log10(x/y)
E1= e1-(R/n)*log10(z1*z**8/x)
E2= E-E1

//RESULTS
mprintf("Redox potential of sample= %.3f v",E)
mprintf("\nRedox potential of sample= %.3f v",E1)
mprintf("\nRedox potential of sample= %.3f v",E2)