summaryrefslogtreecommitdiff
path: root/3689/CH13/EX13.3/13_3.sce
blob: e3e99328f63341f28a4e06942c22e605951fbecc (plain)
1
2
3
4
5
6
7
8
9
10
11
////Variable Declaration
p0 = 0.633        //Probabilities of Energy level 1,2,3 
p1 = 0.233
p2 = 0.086

//Calculation
p4 = 1. -(p0+p1+p2)

//Results
printf("\n Probability of finding an oscillator at energy level of n>3 is %4.3f i.e.%4.1f percent",p4,p4*100)