summaryrefslogtreecommitdiff
path: root/3411/CH15/EX7.2.u2/Ex7_2_u2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH15/EX7.2.u2/Ex7_2_u2.sce')
-rw-r--r--3411/CH15/EX7.2.u2/Ex7_2_u2.sce6
1 files changed, 3 insertions, 3 deletions
diff --git a/3411/CH15/EX7.2.u2/Ex7_2_u2.sce b/3411/CH15/EX7.2.u2/Ex7_2_u2.sce
index 2542b76ee..53ba64ccf 100644
--- a/3411/CH15/EX7.2.u2/Ex7_2_u2.sce
+++ b/3411/CH15/EX7.2.u2/Ex7_2_u2.sce
@@ -2,9 +2,9 @@
clc();
clear;
//To calculate the diffusion current density
-Dn=22.5
-e=1.6*10^-19 //units in eV
+Dn=22.5 //units in cm^2/sec
+e=1.6*10^-19 //units in coulombs
dn=(1*10^18)-(7*10^17)
-dx=0.1
+dx=0.1 //units in cm
Jndiff=e*Dn*(dn/dx) //units in A/cm^2
printf("The diffusion current density is Jn,diff=%.1f A/cm^2",Jndiff)