summaryrefslogtreecommitdiff
path: root/3740/CH2/EX2.5/Ex2_5.sce
blob: 777e7182daee691b900d4325c01271e632b3076e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
//Example 2.5
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;

//given
k=1.38e-23;//Boltzmann's constant in SI Units
T=290;//room temperature in K
e=1.6e-19;//charge of electrons in C
Nd=1e22;//donor impurity level in m(-3)
Na=1e24;//acceptor impurity level in m(-3)
ni=2.4e19;//intrinsic electron concentration in m^(-3)

V0=k*T/e*log(Na*Nd/(ni^2));//contact potential difference in V
mprintf("V0 = %.2f V",V0);