Question: =XI- Problem 2.13. Write a code to solve the ODE (refer to Eq. (2.17)) dx (1-), OS1510, dt with initial condition x(0)=0.5. (a) Run the

 =XI- Problem 2.13. Write a code to solve the ODE (refer

=XI- Problem 2.13. Write a code to solve the ODE (refer to Eq. (2.17)) dx (1-), OS1510, dt with initial condition x(0)=0.5. (a) Run the code and get the two column vectors of discrete time points and the corresponding approximate solutions. (b) Use the vector of time points to compute a vector containing the exact solution at those time points. (Hint: refer to formula (2.18): exponential of x is 'exp(x)' in MATLAB.] (c) Compute the absolute value of the difference between the approximate and exact solutions. (d) Plot the numerical solution and the exact solution on the same figure with dif- ferent markers and different colors (refer to the numerical section of Chapter 3 for plotting)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!