Exercise 7 Consider Ivp Dy Ay 51 10 Y0 1 Create New Anonymous Function G Evaluates Slope F Q43859961
please do both so i canunderstand them
Exercise 7 Now consider the IVP: dy ay = 51 – 10, y0) = 1 Now, create a new anonymous function g so that it evaluates the slope field at points of our new ODE. Once done, copy and past the commands here: Enter code In the following table, two step-sizes are provided. Fill in the approximate values determined by Euler’s method for the given step-sizes. At y(2) (approx.) y(5) (approx.) 0.1 0.05 In Exercise 1 you found the exact solution for this IVP. Use Matlab as a calculator to determine the exact values of the solution at 1 = 2 and t = 5. What are the exact values? y(2) = and y(5) = Saved. Exercise 8 (Optional) Use a for loop to plot the exact solution for the IVP in Exercise 7 over the domain 0 Sis 5 as well as the Euler approximations for Af = 0.5, At = 0.25, and At = 0.125 all on the same graph. Copy and paste the commands you used here: Enter code Upload your PNG using the following prompt: Choose file No file chosen Upload your PNG 0% Show transcribed image text Exercise 7 Now consider the IVP: dy ay = 51 – 10, y0) = 1 Now, create a new anonymous function g so that it evaluates the slope field at points of our new ODE. Once done, copy and past the commands here: Enter code In the following table, two step-sizes are provided. Fill in the approximate values determined by Euler’s method for the given step-sizes. At y(2) (approx.) y(5) (approx.) 0.1 0.05 In Exercise 1 you found the exact solution for this IVP. Use Matlab as a calculator to determine the exact values of the solution at 1 = 2 and t = 5. What are the exact values? y(2) = and y(5) = Saved.
Exercise 8 (Optional) Use a for loop to plot the exact solution for the IVP in Exercise 7 over the domain 0 Sis 5 as well as the Euler approximations for Af = 0.5, At = 0.25, and At = 0.125 all on the same graph. Copy and paste the commands you used here: Enter code Upload your PNG using the following prompt: Choose file No file chosen Upload your PNG 0%
Expert Answer
Answer to Exercise 7 Now consider the IVP: dy ay = 51 – 10, y0) = 1 Now, create a new anonymous function g so that it evaluates …
OR