diff options
Diffstat (limited to '377/CH1/EX1.6/1_6.sce')
-rw-r--r-- | 377/CH1/EX1.6/1_6.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/377/CH1/EX1.6/1_6.sce b/377/CH1/EX1.6/1_6.sce new file mode 100644 index 000000000..59ef1b4db --- /dev/null +++ b/377/CH1/EX1.6/1_6.sce @@ -0,0 +1,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);
\ No newline at end of file |