diff options
Diffstat (limited to '377/CH1/EX1.7/1_7.sce')
-rw-r--r-- | 377/CH1/EX1.7/1_7.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/377/CH1/EX1.7/1_7.sce b/377/CH1/EX1.7/1_7.sce new file mode 100644 index 000000000..c3e2d9d30 --- /dev/null +++ b/377/CH1/EX1.7/1_7.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.01*9.1;
+L=50;
+E=3*(pi^2)*(h^2)/(2*me*L^2);
+printf('\n The value of E in Joules is %f *(10^-18)',E);
+f=E/1.6*10;
+printf('\n The value of E in eV is %f',f);
\ No newline at end of file |