summaryrefslogtreecommitdiff
path: root/3754/CH10/EX10.11/10_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH10/EX10.11/10_11.sce')
-rw-r--r--3754/CH10/EX10.11/10_11.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3754/CH10/EX10.11/10_11.sce b/3754/CH10/EX10.11/10_11.sce
new file mode 100644
index 000000000..fbb35dcc6
--- /dev/null
+++ b/3754/CH10/EX10.11/10_11.sce
@@ -0,0 +1,16 @@
+clear//
+
+//Variables
+
+ND = 5 * 10**8 //Donor atom concentration (in atoms per cubic-centimeter)
+NA = 6 * 10**16 //Acceptor atom concentration (in atoms per cubic-centimeter)
+ni = 1.5 * 10**10 //intrinsic concentration (in atoms per cubic-centimeter)
+
+//Calculation
+
+n = ni**2/NA //number of electrons (in per cubic-centimeter)
+p = ni**2/ND //number of holes (in per cubic-centimeter)
+
+//Result
+
+printf("\n Density of electrons is %0.3f cm**-3.\nDensity of holes is %0.3f cm**-3.",n,p)