summaryrefslogtreecommitdiff
path: root/2720/CH3/EX3.21.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2720/CH3/EX3.21.5
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 '2720/CH3/EX3.21.5')
-rwxr-xr-x2720/CH3/EX3.21.5/ex3_21_5.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2720/CH3/EX3.21.5/ex3_21_5.sce b/2720/CH3/EX3.21.5/ex3_21_5.sce
new file mode 100755
index 000000000..15a80b592
--- /dev/null
+++ b/2720/CH3/EX3.21.5/ex3_21_5.sce
@@ -0,0 +1,21 @@
+// Exa 3.21.5
+clc;
+clear;
+close;
+format('e',9)
+// Given data
+Mu_n = 0.15;// in m^2/v-s
+K = 1.38 * 10^-23; // in J/K
+T = 300;// in K
+del_n = 10^20;// in per m^3
+Toh_n = 10^-7;// in s
+e = 1.6 * 10^-19;// in C
+D_n = Mu_n * ((K * T)/e);// in m^2/s
+disp(D_n,"The diffusion coefficient in m^2/s is");
+L_n = sqrt(D_n * Toh_n);// in m
+disp(L_n,"The Diffusion length in m is");
+J_n = (e * D_n * del_n)/L_n;// in A/m^2
+disp(J_n,"The diffusion current density in A/m^2 is");
+// Note : The value of diffusion coefficient in the book is wrong.
+
+