blob: a83b21005025164cb5891a60c8d2319f39fec17f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
////Variable Declaration
p0 = 0.394 //Probabilities of Energy level 1,2,3
p1by2 = 0.239
p2 = 0.145
//Calculation
p4 = 1. -(p0+p1by2+p2)
//Results
printf("\n Probability of finding an oscillator at energy level of n>3 is %4.3f",p4)
|