summaryrefslogtreecommitdiff
path: root/2498/CH1/EX1.18/ex1_18.sce
blob: 83780dd349bb4e5774154b1408943162d7d2d390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Exa 1.18
clc;
clear;
close;
format('e',8)
// Given data
N_D = 2*10^16;// in /cm^3
N_A = 5*10^15;// in /cm^3
// The concentration of holes 
Pp = N_D-N_A;// in /cm^3
disp(Pp,"The concentration of holes in /cm^3 is");
n_i = 10^12;
// The concentartion of electrons 
n_p = (n_i^2)/Pp;// in /cm^3
disp(n_p,"The concentartion of electrons in /cm^3 is");