summaryrefslogtreecommitdiff
path: root/2216/CH14/EX14.1/ex_14_1.sce
blob: 9cc8f842e80bd399f7e378a6b838c799ba587657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Example 14.1: energy and threshold electrical energy
clc;
clear;
close;
format('v',4)
disp("part (a)")
no=1.9*10^19;//cm^-3;//
hc=6.6*10^-34;//
v=5.45*10^14;//Hz
av=2;//
nv=1;//
n2=no/2;//
eng=((n2*hc*v)/(av*nv));// J cm^-2
disp(eng,"energy in J cm^-2 is")
format('v',5)
disp("part (b)")
oe=0.50;//
mr=0.15;//
lr=0.20;//
teng=eng/(oe*mr*lr);//
disp(teng,"threshold energy in J cm^-2 is")
//electrical energy is calculated wrong in the textbook