Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN MATLAB Problem 4 (modified) in Gilat. (3 points) 4. Radioactive decay can be modeled by the equation A = A e-kt where A is
IN MATLAB
Problem 4 (modified) in Gilat. (3 points) 4. Radioactive decay can be modeled by the equation A = A e-kt where A is the amount at time i, Ao is the amount at time != 0 and k is a constant. Write a MATLAB program that calculates the amount of a radio- active material. When executed, the program asks the user to enter the half- life of the material (in years), the current amount of the material (in lb), and the number of years from now for which the amount should be calculated. From this information the program first calculates the constant k and then the amount at / years. For output the program, displays the message: "The amount of the material after XX years is XX kg where XX are the corre- sponding numerical values. Use the program to determine how much pleto miem 299-thalf-life24, 110 years) will be left front 50 lb-after-500-youth tritium (half-life 12.3 years) will be left from 100 lb after 50 years Tips: To get k, use e kt - 0.5 and solve for k. Hint: In(ek) - In (0.5) -kt-In(0.5) Notes: exponent> exponentStep 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