summaryrefslogtreecommitdiff
path: root/587/CH14/EX14.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /587/CH14/EX14.7
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 '587/CH14/EX14.7')
-rwxr-xr-x587/CH14/EX14.7/example14_7.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/587/CH14/EX14.7/example14_7.sce b/587/CH14/EX14.7/example14_7.sce
new file mode 100755
index 000000000..56027e119
--- /dev/null
+++ b/587/CH14/EX14.7/example14_7.sce
@@ -0,0 +1,15 @@
+clear;
+clc;
+
+//Example14.7[Hardening of Steel by the diffusion of carbon]
+//Given:-
+D_AB=4.8*10^(-10);//Diffusion coefficient of carbon in steel at the furnace temperature [m^2/s]
+wA_i=0.0015;//Initial carbon concentration
+wA_e=0.012;//Equilibrium concentration of carbon
+wA_t=0.01;//Concentration of carbon after desired time
+x=0.0005;//Diffusion distance[m]
+//Solution:
+a=(wA_t-wA_i)/(wA_e-wA_i);
+//Tthe argument whose complimentary error function is a=0.81 is 0.17
+t=(x^2)/(4*D_AB*(0.17^2));//[seconds]
+disp("seconds",round(t),"Time taken to reach desired level of hardening is") \ No newline at end of file