summaryrefslogtreecommitdiff
path: root/3856/CH10/EX10.3/Ex10_3.sce
blob: 82a15a3df66e6ecaf22ebb8b6aa7dceb9ec7e158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Predict whether the following reaction would proceed spontaneously as written ( Cd(s)+Fe++(aq)=Cd++(aq)+Fe(s)

//Example 10.3

clc;

clear;

C1=0.15; //Concentration of Cadmium ion in M

C2=0.68;  //Concentration of Ferrus  ion in M

E1=-0.447; //Standard Electrode potential for cathode in V

E2=-0.403; //Standard Electrode potential for anode in V

Edes=E1-E2;  //Standard Electrode potential in V

v=2; //Stoichiometric coefficient 

E=Edes-(0.0257/v)*log(C1/C2);  //Standard Electrode potential from Nerst equation in V

printf("Standard Electrode potential from = %.3f V is negative the reaction is not spontaneous as written",E);