summaryrefslogtreecommitdiff
path: root/3769/CH24/EX24.8/Ex24_8.sce
blob: 560762879dfef79748ca6903a8a4b804c347ab1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clear
//Given
n=1.0
n1=2.0
n2=3.0
a=0.53*10**-10
Z=3.0

//Calculation
r1=(a*n)/Z
r2=(a*n1**2)/Z
r3=(a*n2**2)/Z
E1=(-13.6*Z**2)/n**2
E2=(-13.6*Z**2)/n1**2
E3=(-13.6*Z**2)/n2**2
E=E3-E1

//Result
printf("\n (i) Radii of three lowest allowed orbits is %0.2f A %0.2f A and %0.3f A",r1*10**10,r2*10**10,r3*10**10)
printf("\n (ii) Energy of three lowest allowed orbits is %0.3f ev %0.3f ev and %0.3f ev",E1,E2,E3)
printf("\n Energy of the photon is %0.3f  ev",E)