Question: Solving Ordinary Differential Equations Numerically We will be solving a system of ordinary differential equations of the form: (1) using implicit methods Q.1. Write a
Solving Ordinary Differential Equations Numerically We will be solving a system of ordinary differential equations of the form: (1) using implicit methods Q.1. Write a Matlab code to implement Crank Nicholson (trapezoidal) method to solve Eq. (1). Use f (x.t) = -0.1x to check your code. Q.2. Compare the performance of implicit Euler and Crank Nicholson method with the exact solution of Eq. (1) for f(x.t) = -0.1x by plotting all the three responses in a single figure Solving Ordinary Differential Equations Numerically We will be solving a system of ordinary differential equations of the form: (1) using implicit methods Q.1. Write a Matlab code to implement Crank Nicholson (trapezoidal) method to solve Eq. (1). Use f (x.t) = -0.1x to check your code. Q.2. Compare the performance of implicit Euler and Crank Nicholson method with the exact solution of Eq. (1) for f(x.t) = -0.1x by plotting all the three responses in a single figure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
