ASE 211 - Homework 12 Due April 30

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

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

ASE 211 Homework 12 Due: in class, Wed., Apr 30th. 1. Consider the initial value problem y ( 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
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 diﬀerent values of h . Plot y versus x in each case and compare with the exact solution....
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern