Question: Please show me the exact code needed. Follow the instruction given in the first photo. My Solutions ) Decay Problem A zircon sample contains 4000
Please show me the exact code needed. Follow the instruction given in the first photo.



My Solutions ) Decay Problem A zircon sample contains 4000 atoms of the radioactive element 235U. Given that 235U has a halt life of 700 million years, how long would it take to decay to 125 atoms? Solve the equation via MATLAB making sure that you passed though the following: 1. Initialization of variables 2. Setting up the differential equations 3. Dating down initial Conditions 4. Solving for the parameter K. 5. Finding the resulting model 6. Finding the period where the amount will be 125 atoms 7. Graph the solutions Script Save C Reset MATLAB Documentation 1 A zircon sample contains 5000 atoms of the radioactive element 235U. Given that 235U has a half- life of 650 million years, how long would it take to decay to 120 atoms? 4 Setup the variables A(t), k that will be used in the program. Find also the derivative of A(t) and set as dA 5 syms 6 dA 7 8 %Initial Conditions 9 cond1= cond2= 11 Acondition 12 13 %Set the differential equation model as eqn1; 14 eqn1 15 16 Find k1 and k2, by solving the initial value problem eqnl using condi and cond2, respectively. 17 k1 = 18 k2 = 19 20 Solve for k by equating kl and k2 at t=0. Save results as k. 21 22 23 Solve the eqn1 using the acquired value of k and using Initial value condl. 24 25 26 *Solve the equation when A(t) = Acondition. Save Answer as tfinal (This is in Million Years)27 28 29 %Express your answer in years 30 31 32 33 % Plot the equation: Use the Title=Radioactive Decay, XValue=Period (Million of Years), YValue=Atoms of 2350 34 35 36 37 Use the domain (0, tfinal+5) with 0.2 gaps from each point 38 x=0 :0. 2 : tfinal+500; 39 y=Aso In (x) ; 40 41 42 43 44 45 Run Script
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
