summaryrefslogtreecommitdiff
path: root/2258/CH1/EX1.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2258/CH1/EX1.16
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2258/CH1/EX1.16')
-rwxr-xr-x2258/CH1/EX1.16/1_16.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2258/CH1/EX1.16/1_16.sce b/2258/CH1/EX1.16/1_16.sce
new file mode 100755
index 000000000..b12fc9eac
--- /dev/null
+++ b/2258/CH1/EX1.16/1_16.sce
@@ -0,0 +1,13 @@
+clc();
+clear;
+// To calculate the probability of finding the particle
+n=1; //lowest state
+L=10; //width in armstrong
+L=L*10^-10; //width in m
+x=L/2;
+delta_x=1; //interval in armstrong
+delta_x=delta_x*10^-10; //interval in m
+psi1=(sqrt(2/L))*sin(%pi*x/L);
+A=psi1^2;
+P=A*delta_x;
+printf("probability of finding the particle is %f",P);