summaryrefslogtreecommitdiff
path: root/623/CH1/EX1.1.13/U1_C1_13.sce
blob: 3c30041ee762d62f3dde2a509983cabacaaa12a2 (plain)
1
2
3
4
5
6
7
8
9
//variable initialization
Theta=120                                                                       //Scattering angle of photon (degree)
T=0.45                                                                          //Kinetic energy of electron (MeV)
a=0.51                                                                          //Value of m0*c^2 (Mev)

//Calculation of the energy of the incident photon
E=0.5*T*(1+(1+(2*a)/(T*(sind(Theta/2))^2))^(1/2));                              //Energy of the incident photon (MeV)

printf("\nEnergy of the incident photon = %.2f Mev",E);