summaryrefslogtreecommitdiff
path: root/1223/CH1/EX1.3/Ex1_3.sce
blob: 112b5f20e6aade919be331c445297cbefdf6b600 (plain)
1
2
3
4
5
6
7
8
9
10
11
clear;
clc;
//Example1.3
T=300;//(°K)Given Temperature
Na=10^16;//(cm^-3)Acceptor concentration in p region
Nd=10^17;//(cm^-3)Donor concentration in n region
n_i=1.5*10^10;//(cm^-3)intrinsic carrier concentration
V_T=0.026;//(Volt)terminal voltage
//built-in potential
V_bi=V_T*log(Na*Nd/(n_i)^2);
printf('\nthe built-in potential=%f V',V_bi)