This question concerns the Compton formula (Eq. 3.4), which gives the energy Eout of a scattered...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 : Ein Eout = Ein 1+ [1 cos(0)] mec Where me is the rest mass of the electron, and c the speed of light in a vacuum. a. Write a Python function that takes an incoming energy Ein (in keV) and an angle (in 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) 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 : Ein Eout = Ein 1+ [1 cos(0)] mec Where me is the rest mass of the electron, and c the speed of light in a vacuum. a. Write a Python function that takes an incoming energy Ein (in keV) and an angle (in 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:
Related Book For
Financial accounting
ISBN: 978-0136108863
8th Edition
Authors: Walter T. Harrison, Charles T. Horngren, William Bill Thomas
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Visit http://www.swisswireless.org/wlan_calc_en.html and go to the Antenna section. Observe the dynamics between the signal frequency, antenna diameter, and antenna gain of a parabolic antenna. 1....
-
Review the Financial Statements provided to each group on Blackboard (You may use laptops for this exercise). [ Focus on: a) Is the company Profitable b) Does the company have a lot of liabilities c)...
-
A client in good health wants to support the college education of her teenage grandchild. The client holds various properties but proposes to make a gift of cash in the amount of the annual...
-
65 year old woman with hypertension (high blood pressure) 54 year old man with diabetes 20 year old college student with diabetes Make a list of all the ingredients that will be needed. Your meal...
-
Explain several implications of IFRS on financial reporting by health care organizations.
-
Donald Chin works for Northwest Supplies. His rate of pay is $8.50 per hour, and he is paid 1 times the regular rate for all hours worked in excess of 40 per week. During the last week of January of...
-
A. Find the value of x. B. 1. 2. 61 = x ( mod 7) 71 = x ( mod 8) 3. 78 x 3 (mod 5) 4. 89 = (x+3)( mod 4) 1. What is the remainder when 2021 2021 2020? is divided by
-
Parent Inc acquires 80% of Sub Inc on August 1, 2022 for cash of $180,000, what amount would appear in the Non-Controlling Interest (NCI) Account on the Consolidated Balance Sheet on the date of...
-
Distinguish between dominant cultures and sub-cultures, and between strong and weak cultures.
-
Examine the frameworks used to categorize values.
-
Distinguish between the early trait approach to leadership and the later emphasis on personal characteristics.
-
What are the features of the liability of a strong culture?
-
Comment on why it is necessary to evaluate training, and mention the important issues involved in such an exercise.
-
Duncans Pizzas is a chain of pizza stores. Pizzas are made fresh in-store, and then delivered to customers by a fleet of drivers. The senior management team has identified the strategic priorities...
-
As of January 1, 2018, Room Designs, Inc. had a balance of $9,900 in Cash, $3,500 in Common Stock, and $6,400 in Retained Earnings. These were the only accounts with balances in the ledger on January...
-
Harbour Master Marine Supply reported the following comparative income statement for the years ended September 30, 2010, and 2009: Harbour Masters President and shareholders are thrilled by the...
-
Set up the following T-accounts: Cash, Accounts Receivable, Office Supplies, Office Furniture, Accounts Payable, Common Stock , Dividends, Service Revenue, Salary Expense, and Rent Expense. Record...
-
Suppose Dighton Cycles, Inc., reported a number of special items on its income statement. The following data, listed in no particular order, came from Dightons financial statements (amounts in...
-
Decide whether the system in Problem 4 is stable. A linear dynamic system is stable if the homogeneous solution of its mathematical model, subjected to the prescribed initial conditions, decays. More...
-
Perform the indicated operations, if defined, for the following vectors and matrices. \(\left(\mathbf{B}-\mathbf{v} \mathbf{w}^{T} ight) \mathbf{A}\) -2 1 -3 1 1 A = 1 -3 2 1 32 B = V= W = 0 0 4 5
-
Perform the indicated operations, if defined, for the following vectors and matrices. \(\left(\mathbf{A B}^{T} ight) \mathbf{v}\) -2 1 -3 1 1 A = 1 -3 2 1 32 B = V= W = 0 0 4 5
Study smarter with the SolutionInn App