Question: please solve with matlab code In the second part of the assignment write a MATLAB program to approximate the solution of the initial-value problem using
please solve with matlab code
In the second part of the assignment write a MATLAB program to approximate the solution of the initial-value problem using Euler's method, 2nd order Runge-Kutta with midpoint method and the 4th order Runge-Kutta method. Use the program to answer the following questions: 1. Compute an approximate solution of y' = x+y , with y(0) = 1 and h 0.1. Use dsolve' command in MATLAB to compute the exact solution and the absolute relative error at y(0.5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
