Hw08_p02_answer - h = 0.25000 x y(x Y(x error 0.00000 1.00000 1.00000 0.00000 0.25000 0.53125 0.52591 0.00534 0.50000 0.35547 0.35150 0.00397

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

View Full Document Right Arrow Icon
Problem 2(a) RK4 works pretty well. As 'h' gets smaller, errors gets smaller. h = 0.25000 x y(x) Y(x) error 0.00000 0.00000 0.00000 0.00000 0.25000 0.23525 0.23529 -0.00004 0.50000 0.39986 0.40000 -0.00014 0.75000 0.47979 0.48000 -0.00021 1.00000 0.49980 0.50000 -0.00020 1.25000 0.48766 0.48780 -0.00015 1.50000 0.46144 0.46154 -0.00010 1.75000 0.43070 0.43077 -0.00007 2.00000 0.39996 0.40000 -0.00004 h = 0.12500 x y(x) Y(x) error 0.00000 0.00000 0.00000 0.00000 0.25000 0.23529 0.23529 -0.00000 0.50000 0.39999 0.40000 -0.00001 0.75000 0.47999 0.48000 -0.00001 1.00000 0.49999 0.50000 -0.00001 1.25000 0.48780 0.48780 -0.00001 1.50000 0.46153 0.46154 -0.00001 1.75000 0.43077 0.43077 -0.00000 2.00000 0.40000 0.40000 -0.00000 Problem 2(b) RK4 works pretty well. As 'h' gets smaller, errors gets smaller.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: h = 0.25000 x y(x) Y(x) error 0.00000 1.00000 1.00000 0.00000 0.25000 0.53125 0.52591 0.00534 0.50000 0.35547 0.35150 0.00397 0.75000 0.28955 0.28734 0.00221 1.00000 0.26483 0.26374 0.00109 1.25000 0.25556 0.25505 0.00051 1.50000 0.25209 0.25186 0.00023 1.75000 0.25078 0.25068 0.00010 2.00000 0.25029 0.25025 0.00004 h = 0.12500 x y(x) Y(x) error 0.00000 1.00000 1.00000 0.00000 0.25000 0.52613 0.52591 0.00022 0.50000 0.35166 0.35150 0.00016 0.75000 0.28743 0.28734 0.00009 1.00000 0.26378 0.26374 0.00004 1.25000 0.25507 0.25505 0.00002 1.50000 0.25187 0.25186 0.00001 1.75000 0.25069 0.25068 0.00000 2.00000 0.25025 0.25025 0.00000...
View Full Document

This note was uploaded on 02/22/2010 for the course CHE 348 taught by Professor Chelikowsky during the Spring '08 term at University of Texas at Austin.

Ask a homework question - tutors are online