summaryrefslogtreecommitdiff
path: root/3651/CH3/EX3.11
diff options
context:
space:
mode:
Diffstat (limited to '3651/CH3/EX3.11')
-rw-r--r--3651/CH3/EX3.11/11.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3651/CH3/EX3.11/11.sce b/3651/CH3/EX3.11/11.sce
new file mode 100644
index 000000000..6bc122469
--- /dev/null
+++ b/3651/CH3/EX3.11/11.sce
@@ -0,0 +1,16 @@
+//Variable declaration
+nx=1
+ny=1
+nz=1
+a=1
+h=6.63*10**-34
+m=9.1*10**-31
+
+//Calculations
+E1=h**2*(nx**2+ny**2+nz**2)/(8*m*a**2)
+E2=(h**2*6)/(8*m*a**2) //nx**2+ny**2+nz**2=6
+diff=E2-E1
+//Result
+printf('E1 =%0.3f *10**-37 Joule \n ',(E1*10**37))
+printf('E2 =%0.3f *10**-37 Joule \n ',(E2*10**37))
+printf('E2-E1 =%0.3f *10**-37 J \n ',(diff*10**37)) \ No newline at end of file