summaryrefslogtreecommitdiff
path: root/3014/CH2/EX2.30/Ex2_30.sce
diff options
context:
space:
mode:
Diffstat (limited to '3014/CH2/EX2.30/Ex2_30.sce')
-rwxr-xr-x3014/CH2/EX2.30/Ex2_30.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3014/CH2/EX2.30/Ex2_30.sce b/3014/CH2/EX2.30/Ex2_30.sce
new file mode 100755
index 000000000..154543a6d
--- /dev/null
+++ b/3014/CH2/EX2.30/Ex2_30.sce
@@ -0,0 +1,13 @@
+clc
+
+//given that
+l = 30 // width of potential well in angstrom
+x = l/2
+del_x = 2 // interval of length at centre in angstrom
+h = 6.63e-34 // Plank constant
+n = 1 // ground state
+printf("\nExample 2.30")
+phi_x = ((sqrt(2/l))*sin(n*%pi*x/l))^2
+p = phi_x*del_x // Calculation of probability at centre
+printf("\n Probability of finding particle at centre is %d percent.\n\n\n",p*100)
+// Answer given in book is 16 percent. It is due to wrong calculation