summaryrefslogtreecommitdiff
path: root/3754/CH10/EX10.11/10_11.sce
blob: fbb35dcc6dece5b7ee726c9cf5d5a7face4ef8a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)