Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started