summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.6/7_6.sce
blob: f855bb65cb81fa13ef44d8e94c4ecbde569cae0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc,clear
printf('Example 7.6\n\n')

m=32 //mass of deposit
Q=96500 //quantity of electricity 
Z=m/Q //electrochemical equivalent

m1=20*10^-3
Q1= m1* (Q/m)

I=0.15 //steady current
T=Q1/I//time taken to deposit 20 milli-gram
printf('Time taken = %f seconds\n',T)
printf('or <%d hours,%d minutes,%d seconds>',T/3600,60*((T/3600)- floor(T/3600) ) , 60*((60*((T/3600)- floor(T/3600) ) )-floor(60*((T/3600)- floor(T/3600) ) )))