Question: Solve y' = -y In y using Euler, Runge-Kutta order 2 and Runge-Kutta order 4. You can either test in one python code or separately

 Solve y' = -y In y using Euler, Runge-Kutta order 2

Solve y' = -y In y using Euler, Runge-Kutta order 2 and Runge-Kutta order 4. You can either test in one python code or separately for each method. Test the accuracy with the exact solution over an interval [0,1]. Use xo = 3 as initial guess and step size, h = 8. The exact solution for this function is y(x) = e(In 3)ex. Plot your results (Euler, RK2, RK4 and exact function) and do error analysis for this

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!