summaryrefslogtreecommitdiff
path: root/2720/CH3/EX3.21.4/ex3_21_4.sce
blob: a82976932fcf167d67fb7ce8832c73930d3465e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Exa 3.21.4
clc;
clear;
close;
format('e',9)
// Given data
K = 1.38 * 10^-23;// in J/K
T = 27;// in degree
T = T + 273;// in K
e = 1.6 * 10^-19;// in C
Mu_e = 0.17;// in m^2/v-s
Mu_e1 = 0.025;// in m^2/v-s
D_n = ((K * T)/e) * Mu_e;// in m^2/s
disp(D_n,"The diffusion coefficient of electrons in m^2/s is");
D_p = ((K * T)/e) * Mu_e1;// in m^2/s
disp(D_p,"The diffusion coefficient of  holes in m^2/s is ");