# HW_08 - 1 4 1 4 2 2 1 2 1 2 1 1-=-= =-= y y y y y y y y...

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

ChE 348 Homework # 8 _______________________________________________________________________ _ 1. Derive the numerical method based on using Simpson’s rule to approximate the integral in + - + - = + h x h x ds s y s f h x y h x y . )) ( , ( ) ( ) ( Is this method single-step or multi-step, implicit or explicit? 2. Write a computer program that solves the following initial value problems over the interval [0, 2], using the fourth-order Runge Kutta method (RK4) with a sequence of grids h = 1/4 and 1/8. Produce an orderly table of ( x n , y n ) pairs and discuss the errors. (a) ( 29 ( 29 2 2 2 1 ) ( : 0 ) 0 ( , 0 2 1 1 ' x x x y solution true y y x y + = = = + + - (b) ( 29 1 3 4 1 ) ( : ; 1 ) 0 ( , 1 4 4 / + = = + - = - x e x y solution true y y y 3. Repeat the problem 2 using the fourth-order Adams-Bashforth (AB4) and Admas- Moulton (AM4) predictor-corrector method. Use the fourth-order Runge-Kutta method (RK4) to generate the needed starting values. 4. Using a hand calculator and h = 0.25, compute approximate solutions to the initial value problem
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 ) ( , 4 1 ) ( , 4 2 2 1 / 2 1 2 1 / 1-=-= = +-= y y y y y y y y Compute out to x = 1.0, using the Trapezoidal rule predictor-corrector method. 5. Consider the second-order equation ) ( , 8 1 ) ( , sin / // = = = + y y y y π ; write this as a first-order system and compute (by hand) approximate solutions using a step size of h = π /10 and the Euler method. Show the first two steps. 6. Write a computer program that approximates the solution to the third order equation ; 3 ) ( , 1 ) ( , 1 ) ( , 8 10 2 2 5 4 // / 2 / // /// =-= = + + = + + + y y y x x y y y y using the following methods with h = 0.1 over the interval [0, 2]: (a) fourth-order Runge-Kutta (RK4) (b) Adams fourth-order predictor (AB4) and corrector (AM4) method with RK4 Compare the results with the true solution: 2 ) ( x e x y x + =-...
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