summaryrefslogtreecommitdiff
path: root/3875/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3875/CH12/EX12.1/Ex12_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3875/CH12/EX12.1/Ex12_1.sce')
-rw-r--r--3875/CH12/EX12.1/Ex12_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3875/CH12/EX12.1/Ex12_1.sce b/3875/CH12/EX12.1/Ex12_1.sce
new file mode 100644
index 000000000..36d5a9310
--- /dev/null
+++ b/3875/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,21 @@
+clc;
+clear;
+m=1.67*10^-27 //mass of particle in kPP
+L=0.1*10^-9 //width in nm
+n=3 //quantum number
+h=6.63*10^-34 //Plancks constant in J-s
+
+//calculation
+//(1)
+E=(n^2*h^2)/(8*m*L^2)
+mprintf("The energy of the particle is = %2.2e Joules\n",E)
+//The answer provided in the textbook is wrong.
+
+//(2)
+lambda=(2*L)/n
+p=h/lambda
+mprintf("The momentum of the particle is = %1.2e kg-ms^-1\n",p)
+
+//(3)
+P=((1/L)*(L/3)) //after integration
+mprintf("The probability of finding particle between x=0 and x=L/3 is = %f",P)