Question: All these questions must be answered using Python: Question 1 ( 1 ) Write a Euler's method code in Python to solve y ' =

All these questions must be answered using Python:
Question 1
(1) Write a Euler's method code in Python to solve y'=x y for y(1)=1 on the interval 1,2.
(2) Compare your numerical solution to the exact solution of the equation.
(3) What is the maximum absolute value of the error?
Question 2
(1) Repeat question 1 for y''+y'-y=0,y(0)=-1,y'(0)=1.
Question 3
(1) Instead of Euler's method in Question 1, use a fourth Runge-Kutta method
Question 4
(1) Repeat question 2 using a fourth-order Runge-Kutta method. .
Homework:-
Compare Euler, RK4, two step Adams Bashforth and the two step Adams-Moulton method to
solve
(1)y'=xy,y(0)=1,x in 0,5
All these questions must be answered using

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 Programming Questions!