summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.12/7_12.sce
blob: 840a24071f71ad54a0de525372017b97b0cf0711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc,clear
printf('Example 7.12\n\n')

//nickel
m=18.528*10^-3 //weight of nickel
I=100 //current in amperes
T=10*60 //time in seconds
ECE_Ni=m/(I*T) //in kg/C

//copper
I_Cu=50
T_Cu=6*60
CE_Cu=63.18; CE_Ni=58.6;//chemical equivalents
ECE_Cu= ECE_Ni*((CE_Cu/2)/(CE_Ni/2)) //bothare bivalent
m_Cu= ECE_Cu * I_Cu*T_Cu 

printf('Weight of copper deposited = %f grams',1000*m_Cu)