summaryrefslogtreecommitdiff
path: root/2672/CH4/EX4.5/Ex4_5.sce
blob: aae7a30cee3f2931f5b2c2cbf2c01991eb71dbce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 4_5
clc;
clear;
close;
format('v',6)
//given data : 
c=3*10^8;//m/s//Speed of light
h=1.05*10^-34;//Js//Planks Constant
mc=0.067;//mo
k=[0.1 0.1 0 0];///per Angstrum
mc=mc*0.91*10^-30;//kg
E=h^2*((k(1)*10^10)^2+(k(2)*10^10)^2)/2/mc;//J
E=E/(1.6*10^-19);//eV
disp(E,"Energy of the electron in GaAs(eV)");
//Answer given in the textbook is wrong.