summaryrefslogtreecommitdiff
path: root/1172/CH3/EX3.20/Example3_20.sce
blob: 938d9157045c196106faff36cfd05d663ec713b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
//Given that
theta = 90 // angle of scattered photon in degree
E_rest = 938.3 // rest mass energy of a proton in MeV
E = 12// energy of scattered proton in Mev
c = 3e8 // speed of light in m/s
h = 6.63e-34 // plank's constant
//Sample Problem 20 page No. 145
printf("\n\n\n # Problem 20 # \n")
printf("\n Standard formula Used \n delta_lambda = h * (1 - cos (theta )) / ( m_e * c)")
lambda = h * c / ( E * 1.6e-13) //calculation of incident wavelength
lambda1 = lambda + h * c / (E_rest * 1.6e-13)    //calculation of wavelength of scattered photon
printf ("\n wavelength of scattered photon is  %e Angstrom. ", lambda1 * 1e10)