Question: Objectives: Calculate the solution to an ODE using built-in Matlab functions like ode23s() and ode 15s(). You must be able to setup the inputs properly

 Objectives: Calculate the solution to an ODE using built-in Matlab functions

Objectives: Calculate the solution to an ODE using built-in Matlab functions like ode23s() and ode 15s(). You must be able to setup the inputs properly by hand or in Matlab. Consider the stiff ODE shown with initial condition y(0)=31 from t=0 to 5 with step size of 0.5. dtdy=30y a) Solve the ode analytically and name the solution "ya". b) Solve the ode using ode45() and name the solution "yb". Then calculate the error between this solution and the analytical solution named "Eb". c) Solve the ode using ode23s() and name the solution "yc". Then calculate the error between this solution and the analytical solution named "Ec". d) Solve the ode using ode 15s( ) and name the solution "yd". Then calculate the error between this solution and the analytical solution named "Ed". e) Plot the three errors you calculated to understand how the three solvers converge (or fail to) over time. Make sure you understand the performance of each solver and how to address any issues tha occur

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!