summaryrefslogtreecommitdiff
path: root/3020/CH18/EX18.2/ex18_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3020/CH18/EX18.2/ex18_2.sce')
-rwxr-xr-x3020/CH18/EX18.2/ex18_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3020/CH18/EX18.2/ex18_2.sce b/3020/CH18/EX18.2/ex18_2.sce
new file mode 100755
index 000000000..e04e4d66a
--- /dev/null
+++ b/3020/CH18/EX18.2/ex18_2.sce
@@ -0,0 +1,11 @@
+clc;
+clear all;
+Nd=1e16;//donar concentration in cm^-3
+ni=1.45e10;//intrinsic carrier concentration
+T=300;//temperature in kelvin
+k=1.38e-23;//boltzmann constant
+//let Efd-Efi=x
+x=k*T*log(Nd/ni);//fermi energy with respect to Ef in J
+E=x/(1.6e-19);//covertion from J to eV
+disp('eV',E,'fermi energy with respect to Ef')
+