summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2192/CH7/EX7.9
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2192/CH7/EX7.9')
-rwxr-xr-x2192/CH7/EX7.9/7_9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2192/CH7/EX7.9/7_9.sce b/2192/CH7/EX7.9/7_9.sce
new file mode 100755
index 000000000..558fd896f
--- /dev/null
+++ b/2192/CH7/EX7.9/7_9.sce
@@ -0,0 +1,17 @@
+clc,clear
+printf('Example 7.9\n\n')
+
+SA_plate= 2.54^2
+thickness= 0.05 //thickness of deposit
+density=9 //density of nickel
+W=SA_plate*thickness*density //masss of deposit
+
+CE_Ni=59; CE_Ag=108; //chemical equivalents
+ECE_Ag=0.001118 //electrochemical equivalents
+ECE_Ni = ECE_Ag*((CE_Ni/2)/CE_Ag) //valancy of Ni is 2
+
+I=20
+T=W/(ECE_Ni*I)
+printf('Time taken for deposition = %.0f 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) ) )))
+