ASE 211 - Homework 12 Due April 30

ASE 211 - Homework 12 Due April 30 - with your code. 3. Use...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ASE 211 Homework 12 Due: in class, Wed., Apr 30th. 1. Consider the initial value problem y 0 ( x ) = 5 x 4 y, x > 0 y (0) = 2 , which has the exact solution y ( x ) = 2 e x 5 . By hand, take 5 steps of the forward Euler method with step size h = . 1. 2. Write a matlab m-file which implements the forward Euler method. Test your m-file on the problem above and check that your hand work agrees
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: with your code. 3. Use your code to solve the problem for 0 x 1 with h = 0 . 05 , . 025, and 0 . 0125. Determine the approximation of y (1) for each case, namely, tabulate the error at x = 1 for dierent values of h . Plot y versus x in each case and compare with the exact solution....
View Full Document

Ask a homework question - tutors are online