Menu

Question 2 10 Marks 27 Question Concerns Compton Formula Eq 34 Gives Energy Eout Scattered Q43836043

Question 2 (10 marks) 27 This question concerns the Compton formula (Eq. 3.4), which gives the energy Eout of a scattered pho

Question 2 (10 marks) 27 This question concerns the Compton formula (Eq. 3.4), which gives the energy Eout of a scattered photon as a function of the energy Ein of the incoming photon and the angle of scatter : Eout Ein Ein 1+ Bin [1 – cos(0)] mec2 Where me is the rest mass of the electron, and the speed of light in a vacuum. (in a. Write a Python function that takes an incoming energy Ein (in keV) and an angle degrees) and returns the scattered energy Eout (in keV). Your function should be preceded by comment lines explaining its purpose and use, and detailing the input parameters and returned value. You should also include explanatory comments within the function where appropriate. Test your function before using it in part b). Considerations: . Give your function and any variables meaningful names. • Remember to import any packages that your function might need. • Remember that the Python cos() function takes an argument in radians. • The mass energy of the electron mec expressed in electronvolts is: 511.0 keV Paste a copy of your function, including any comments and import statements (either as text or as a screenshot) into your answer. Explain how you have tested your function. (4 Marks) Show transcribed image text Question 2 (10 marks) 27 This question concerns the Compton formula (Eq. 3.4), which gives the energy Eout of a scattered photon as a function of the energy Ein of the incoming photon and the angle of scatter : Eout Ein Ein 1+ Bin [1 – cos(0)] mec2 Where me is the rest mass of the electron, and the speed of light in a vacuum. (in a. Write a Python function that takes an incoming energy Ein (in keV) and an angle degrees) and returns the scattered energy Eout (in keV). Your function should be preceded by comment lines explaining its purpose and use, and detailing the input parameters and returned value. You should also include explanatory comments within the function where appropriate. Test your function before using it in part b). Considerations: . Give your function and any variables meaningful names. • Remember to import any packages that your function might need. • Remember that the Python cos() function takes an argument in radians. • The mass energy of the electron mec expressed in electronvolts is: 511.0 keV Paste a copy of your function, including any comments and import statements (either as text or as a screenshot) into your answer. Explain how you have tested your function. (4 Marks)

Expert Answer


Answer to Question 2 (10 marks) 27 This question concerns the Compton formula (Eq. 3.4), which gives the energy Eout of a scattere…

OR