Question
Question 2(10 marks) This question concerns the Compton formula (Eq. 3.4), which gives the energy of a scattered photon as a function of the energy
Question 2(10 marks)
This question concerns the Compton formula (Eq. 3.4), which gives the energy of a scattered photon as a function of the energy of the incoming photon and the angle of scatter :
Where is the rest mass of the electron, and the speed of light in a vacuum.
-
a.Write a Python function that takes an incoming energy (in ) and an angle (in degrees) and returns the scattered energy (in ).
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 expressed in electronvolts is:
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)
-
b.Write a Python program using your function from part a) to plot the ratio of the scattered energy to input energy, for angles from zero to 150 degrees.
Plot three lines on the same graph, showing the variation in scattered energy for the following three input energies:
.
Label and annotate your plot appropriately. Your program should export the plot as a .png file.
Paste a copy of this plot into your answer. You do not need to include any other parts of the program or notebook. (4 Marks)
-
c.The plot from part b) helps to understand how the outcome of the experiment depends on the energy of the incoming photons. Explain briefly (two or three short sentences) how you might change the design of the experiment based on this plot, and why. (2 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