summaryrefslogtreecommitdiff
path: root/2102/CH2/EX2.28/exa_2_28.sce
blob: 5a7d0ceca23bfd88b79cc95bc704e2cfa5c68043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Exa 2.28
clc;
clear;
close;
// Given data
format('v',13)
Eg= 0.72;// in eV
Ef= Eg/2;//in eV
K= 8.61*10^-5;// in eV/K
T=300;//in K
nc= 1;
n= 1+%e^((Eg-Ef)/(K*T));
ncBYn= nc/n;
disp(ncBYn,"The fraction of the total number or electrons is : ")