Question: IN PYTHON: 6. Stiff Problem Consider the initial value problem y = -500(y - cost) - sint, to= 0, yo = 2. Recall from class
IN PYTHON:

6. Stiff Problem Consider the initial value problem y = -500(y - cost) - sint, to= 0, yo = 2. Recall from class that the problem is stiff. Solve it with the explicit RK45 and implicit Radau in the module scipy.integrate up to time T = 1 and the default tolerances. 1. Plot the solution. 2. Print the number of steps of each method. 3. Print the difference between the methods at the final time T. 6. Stiff Problem Consider the initial value problem y = -500(y - cost) - sint, to= 0, yo = 2. Recall from class that the problem is stiff. Solve it with the explicit RK45 and implicit Radau in the module scipy.integrate up to time T = 1 and the default tolerances. 1. Plot the solution. 2. Print the number of steps of each method. 3. Print the difference between the methods at the final time T
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
