Question: 4. Write your own program to simulate nuclear decay using a Monte Carlo simulation. You may use the program on pages 192-193 as a guide

4. Write your own program to simulate nuclear decay using a Monte Carlo simulation. You may use the program on pages 192-193 as a guide (but try not to copy it line for line). Your program should be designed to repeat the simulation multiple times (ntrial > 1) and average the results to find the ensemble average as a function of time, t. Use the parameters No = 200, p = 0.01, tmax = 200 and ntrial = 20. I would like you to hand in: (a) A copy of the program. b) A plot of N(t) versus t for one simulation. (c) A plot of versus t from the average of all ntrial simulations. (d) A plot of the data in part c. plotted on a semi-log plot, along with a least-squares fit to the data using the exact solution . What value 1 of do you calculate? 4. Write your own program to simulate nuclear decay using a Monte Carlo simulation. You may use the program on pages 192-193 as a guide (but try not to copy it line for line). Your program should be designed to repeat the simulation multiple times (ntrial > 1) and average the results to find the ensemble average as a function of time, t. Use the parameters No = 200, p = 0.01, tmax = 200 and ntrial = 20. I would like you to hand in: (a) A copy of the program. b) A plot of N(t) versus t for one simulation. (c) A plot of versus t from the average of all ntrial simulations. (d) A plot of the data in part c. plotted on a semi-log plot, along with a least-squares fit to the data using the exact solution . What value 1 of do you calculate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
