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

(a) If you haven't already done so, enter the following commands:
f=0(t,y),0.5*y;
t= inspace (0,2.25,100);y=-4*exp(0.5*t); %define exact solution of the ODE
[t90,y90]=euler(f,[0,2.25],4,90); %solve the ODE uaing Euler( w)/(90) atepa
Determine the Euler's approximation for N=900 and N=9000eN=y (end)-yN (end)t=2.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.
(b) Examine the last column. How does the ratio of consecutive errors relate to the number of
steps used? Your answer to this question should confirm the fact that Euler's method is a
"first-order" method. That is, every time the step size is decreased by a factor of k, the error
is also reduced (approximately) by the same factor, k^(1)=k.
(c) Recall the geometrical interpretation of Euler's method based on the tangent line. Using this
geometrical interpretation, can you explain why the Euler approximations y_(N) overestimate
the solution ye_(N)=y-y_(N)0y_(N), or equivalently, e_(N)=y-y_(N)0
( a ) If you haven't already done so , enter the

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 Civil Engineering Questions!