Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

9. How does one identify the essential functions of a job?

Answered: 1 week ago

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago

Question

Describe a persuasive message.

Answered: 1 week ago

Question

Identify and use the five steps for conducting research.

Answered: 1 week ago

Question

List the goals of a persuasive message.

Answered: 1 week ago