Question: 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

 Question 2 (10 marks) 27 This question concerns the Compton formula

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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!