Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 (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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started