summaryrefslogtreecommitdiff
path: root/3701/CH7/EX7.8/Ex7_8.sce
blob: 8ef4b0c18c7acba815014e7f47d6726f60d67a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
////Given
L1=0.4
L2=0.6
L=1                                                //Say

//Calculation
//
dx=(L2-L1)*L
P1=2/L*(sin(%pi*L/2.0*L))**2*dx
//for first excited state
P2=2/L*(sin(2*%pi*L/2.0*L))**2*dx
//for second excited state
P3=2/L*(sin(3*%pi*L/2.0*L))**2*dx

//Result
printf("\n (a) probability for ground state  %0.3f ", P1)
printf("\n (b) probability for first excited state  %0.1f ",P2)
printf("\n (c) Probability for second excited state  %0.3f ", P3)