summaryrefslogtreecommitdiff
path: root/3754/CH10/EX10.20/10_20.sce
blob: c03415d9cfe044df43bcd80a25d84befee9f7427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables

p =  20 * 10**-2             //Resistivity (in ohm-meter)
u = 100 * 10**-4             //mobility (in meter-square per volt-second)
q = 1.6 * 10**-19                     //charge on electron (in Coulomb) 

//Calculation

sig = 1/p                    //Conductivity (in per ohm-meter)
n = sig / (q * u)            //number of electron carriers (in per cubic-meter)

//Result

printf("\n Number of electron carriers is  %0.1f  m**-3.",n)