blob: d78aa1eaed18d2c17926de2051d6ec99618619c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//Chapter 10 Electmotive Force
clc;
clear;
//Initialisation of Variables
R= 8.31 //J/mol K
T= 25 //C
F= 96500 //coloums
c= 0.02 //molar
c1= 0.1 //molar
c2= 1 //molar
c3= 1 //molar
E1= 1.486 //v
//CALCULATIONS
E= E1-R*(273+T)*2.3*log10(c*c1**2/(c2*c3))/(2*F)
//RESULTS
mprintf("Potential of the cell = %.3f v",E)
|