Question: EXERCISES ( a ) If you haven't already done so , enter the following commands: f = @ ( t , y ) y; t

EXERCISES
(a) If you haven't already done so, enter the following commands:
f=@(t,y) y;
t=linspace (0,1.25,100); y=3**exp(t); %define exact solution of the ODE [t50,y50]=euler(f,[0,1.25],3,50); %solve the ODE using Euler w/50 steps Determine the Euler's approximation for N=500 and N=5000 and fill in the following table with the values of the approximations ( yN (end)), errors (eN=y(end)-yN (end)) and ratios (eNprevious/eN) of consecutive errors at t=1.25. Some of the values have already been entered based on the computations we did above.
Include the table in your report, as well as the MATLAB commands used to find the entries.
\table[[N,\table[[approximation],[yN(end)]],\table[[error],[eN]],\table[[ratio],[eNprev/eN]]],[5,9.1553,1.3158,NA
EXERCISES ( a ) If you haven't already done so ,

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 Programming Questions!