Question: Write a Matlab code for Euler's formula . The initial value problem is , , y(1)=0 The exact solution is y(t)=t 2 (e t -
Write a Matlab code for Euler's formula. The initial value problem is
,
, y(1)=0
The exact solution is y(t)=t2(et - e).
N=10, 20, 40, 80, 160
The program must be able to plot the numerical solutions vs the exact solutions for N=10, 20, and 40.
The program must also be able to calculate the errors at t=2 for N=10, 20, 40, 80, and 160.
s} = 24+te 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
