blob: 05d195472d46ac199d2a2333a53178b47d3ac30a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example number 9.1, Page number 202
clc;clear;
close;
//Variable declaration
e=1.6*10**-19; //charge(c)
ni=2.4*10**19; //particle density(per m**3)
mew_e=0.39; //electron mobility(m**2/Vs)
mew_h=0.19; //hole mobility(m**2/Vs)
//Calculation
rho=1/(ni*e*(mew_e+mew_h)); //resistivity(ohm m)
//Result
printf("resistivity is %.5f ohm-m",rho)
|