Question: do not use numpy or scippy. Write a program that implements the Improved Euler and Runge - Kutta methods to solve the following second order

do not use numpy or scippy. Write a program that implements the Improved Euler and Runge-Kutta methods to solve the following second order ODE
y''-y=x, y(0)=1, y'(0)=-2, h=0.1
Your program should display to the user something like:
For the initial value problem y- y = x
Enter the value of y at x=0:
Enter the value of y at x=0:
Enter the step size for the numerical solution:
At what value of x do you want to know y and y?
And then output:
At x=#.###
For the improved Euler method: y=#.###, and y=#.###
For the Runge-Kutta method: y=#.###, and y=#.###
where #.### are the formatted floating point numbers. (not part of the output)
Do you want to compute at a different x?(Y/N)

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!