blob: 59ef1b4db51caf319108558ea4a0b5bd5775abc7 (
plain)
1
2
3
4
5
6
7
8
9
|
disp("E=(pi^2)*(h^2)/(2*me*Lx^2)+(pi^2)*(h^2)/(2*me*Ly^2)+(pi^2)*(h^2)/(2*me*Lz^2)");
pi=3.14;
h=1.055;
me=0.04*9.1;
L=50;
E=(pi^2)*(h^2)/(2*me*L^2);
printf('\n The value of E in Joules is %f *(10^-17)',E);
f=E/1.6*10^2;
printf('\n The value of E in eV is %f',f);
|