03.03.2014 Views

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.3. SYSTEMS OF ODES 141<br />

4.5<br />

4<br />

3.5<br />

3<br />

2.5<br />

2<br />

1.5<br />

1<br />

0.5<br />

0<br />

-0.5<br />

-0.5 0 0.5 1 1.5 2 2.5 3 3.5<br />

(a) Euler’s Method<br />

4.5<br />

4<br />

3.5<br />

3<br />

2.5<br />

2<br />

1.5<br />

1<br />

0.5<br />

0<br />

-0.5<br />

-0.5 0 0.5 1 1.5 2 2.5 3 3.5<br />

(b) Runge-Kutta Method<br />

Figure 10.7: The simulated phase curves of the system of Example 1<strong>0.1</strong>0 are shown for (a) Euler’s<br />

Method and (b) the Runge-Kutta Method of order 2. The Runge-Kutta Method used larger step<br />

size, but was more accurate. The actual solution to the ODE is an ellipse, thus the “spiralling”<br />

observed for Euler’s Method is spurious.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!