summaryrefslogtreecommitdiff
path: root/3014/CH3/EX3.10/Ex3_10.sce
blob: fee4c29534b96808c8a4042e174c5695a6717e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
 clc
//given that
E = 100 // Energy of X ray beam in KeV
theta = 30 // Scattering angle in degree
m = 9.1e-31 // mass of electron in kg
c = 3e8 // Speed of light in m/s
printf("Example 3.10")
E_rest = m*c^2/(1.6e-19*1e3) // Rest mass energy in KeV
k = 1/E + (1-cos(theta*%pi/180))/(E_rest)
del_e = E - 1/k // Energy of recoiled electron
    printf("\n  Energy of recoiled electron is %f KeV\n\n\n",del_e)