Question

In: Computer Science

The equation A = Ao * e^(-t(log2/h)) is used to model the decay of radioactive materials....

The equation A = Ao * e^(-t(log2/h)) is used to model the decay of radioactive materials. Where A is the amount of material at time t, A0 is the amount at time 0 and h is the half-life.

Write a program that prompts for a decay time and how long of an interval you want to look at. Then write the code that creates a table with the appropriate information.

For example, the decay rate is 6 months for material xyz. What does it look like over 30 hours?

Solutions

Expert Solution

Matlab code:

days = input('Entert the number of days you want to look at\n');
A_0 = 1000; % let initial mass of the element is 1000 gm
h = 10; %let half_life of the element is 10 days
for i = 1:days
fprintf('Remaining mass after %d days is %d gm\n', i,A_0 * exp(-i *( log(2)/h )));
end

Sample Output:

Remaining mass after 1 days is 933.033 gm
Remaining mass after 2 days is 870.551 gm
Remaining mass after 3 days is 812.252 gm
Remaining mass after 4 days is 757.858 gm
Remaining mass after 5 days is 707.107 gm
Remaining mass after 6 days is 659.754 gm
Remaining mass after 7 days is 615.572 gm
Remaining mass after 8 days is 574.349 gm
Remaining mass after 9 days is 535.887 gm
Remaining mass after 10 days is 500 gm
Remaining mass after 11 days is 466.516 gm
Remaining mass after 12 days is 435.275 gm
Remaining mass after 13 days is 406.126 gm
Remaining mass after 14 days is 378.929 gm
Remaining mass after 15 days is 353.553 gm
Remaining mass after 16 days is 329.877 gm
Remaining mass after 17 days is 307.786 gm
Remaining mass after 18 days is 287.175 gm
Remaining mass after 19 days is 267.943 gm
Remaining mass after 20 days is 250 gm

Related Solutions

Radioactive Decay Objective: to study the radioactive decay of materials. Understand the  concept of half life and...
Radioactive Decay Objective: to study the radioactive decay of materials. Understand the  concept of half life and randomness of the radioactive decay Run the case of H3 decay to He3: Go to “Multiple Atoms” tab Start with 80 atoms by clicking on the bucket. Start running and record the time when the number of H3 is changing to 40, 20, 10, and 5.This is accumulative time Repeat the above step 5 times and average them (below is an example of table...
We will be exploring decay reactions used in radioactive dating of objects. This will be a...
We will be exploring decay reactions used in radioactive dating of objects. This will be a short lab to leave you time to prepare for the Unit 3 project. 1. Explore the PhET simulation Radioactive Dating Game . Try all the tabs to figure out why there is more than one element used to estimate how old things might be. 2. What elements’ isotopes are used to estimate how old something is? Why do are more than one type used?...
Radioactive decay can be used to determine the age of an object. If you know the...
Radioactive decay can be used to determine the age of an object. If you know the number of radioactive nuclei with which an object started, the number of radioactive nuclei currently present, and the half-life of the isotope, you can calculate the time since the object was created. Suppose an object was created with 4.810×109 nuclei of a particular isotope that has a half-life of 1.56×103 yr. At this point in time 9.620×108 nuclei of this particular isotope remain. What...
Choose an isotope and describe its radioactive decay process and how it is used
Choose an isotope and describe its radioactive decay process and how it is used
Choose an isotope and describe its radioactive decay process and how it is used. Write a...
Choose an isotope and describe its radioactive decay process and how it is used. Write a minimum of 150 words.
PYTHON!!! Radioactive materials decay over time and turn into other substances. For example, the most common...
PYTHON!!! Radioactive materials decay over time and turn into other substances. For example, the most common isotope of uranium, U-238, decays into thorium-234 by emitting an alpha-particle. The rate of radioactive decay of a material is measured in terms of its half-life. The half-life of a material is defined to be the amount of time it takes for half of the material to undergo radioactive decay. Let m be the initial mass in grams of some material and let h...
A bag contains 9 9 w h i t e w h i t e marbles,...
A bag contains 9 9 w h i t e w h i t e marbles, 3 3 y e l l o w y e l l o w marbles, 7 7 b l u e b l u e marbles. If one marble is drawn from the bag then replaced, what is the probability of drawing a w h i t e w h i t e marble then a b l u e b l u e...
Indicate the net charge for the peptide, C-H-A-V-E-C-A-R-R-I-S-T-H-E-G-R-E-A-T-E-S-T, at the given pH values: (a) pH 1,...
Indicate the net charge for the peptide, C-H-A-V-E-C-A-R-R-I-S-T-H-E-G-R-E-A-T-E-S-T, at the given pH values: (a) pH 1, net charge: (b) pH 5, net charge: (c) pH 8, net charge: (d) pH 14, net charge:
STM 2100 Quiz April 2 2020 Consider the radioactive decay model dy/dt = -0.1y y(0) =...
STM 2100 Quiz April 2 2020 Consider the radioactive decay model dy/dt = -0.1y y(0) = 10 a. Use separation of variables to solve the ODE b. At what time does y(t) = 5? 2. Consider the logistic model given by the following ODE dy/dt = y(1-y) y(0) = 0.1 a. Use separation of variables to rewrite the problem as an equality of two integrals b. Use partial fractions to rewrite 1/y(1-y) as the sum of two fractions, each of...
consider a system with the impulse response h(t) = e −t [u(t) − u(t − 2)]....
consider a system with the impulse response h(t) = e −t [u(t) − u(t − 2)]. (It's exponential function) Let the input signal x(t) be x(t) = 1 if 0 ≤ t < 1, x(t) = −1 if 1 ≤ t < 2, x(t) = 0 otherwise. (a) Determine the system output y(t). (b) (20) Plot y(t) using a computer and specify the maximum and minimum.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT