summaryrefslogtreecommitdiff
path: root/2102/CH1/EX1.6/exa_1_6.sce
blob: 4efb8f7a7ac11e19f3ef1a27f5d7a2e569af0dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Exa 1.6
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 : ")