summaryrefslogtreecommitdiff
path: root/1172/CH3/EX3.19.1/Example3_19a.sce
blob: d691e25faa13dde72adc718bdc91e1abb34aef5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//Given that
lambda = 1 // wavelength in Angstrom
theta = 90 // angle of scattered photon in degree
m_e = 9.11e-31 // mass of electron in Kg
c = 3e8 // speed of light in m/s
h = 6.63e-34 // plank's constant
//Sample Problem 19a page No. 144
printf("\n\n\n # Problem 19a # \n")
printf("\n Standard formula Used \n delta_lambda = h * (1 - cos (theta )) / ( m_e * c)")
lambda_shift = h *(1 - cos(theta * %pi / 180))/ ( m_e * c) //calculation of Change in frequency  
printf ("\n Change in frequency  is %f Hz. ", lambda_shift * 1e10)