SM222 Lecture 4 Spring 2006 - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

SM222 Lecture 4 Spring 2006

Description:

Procedure (see F05sl01_3_append.mws) Euler0 := proc( F, x0, y0, h, N ) ... Procedure (see Class Demonstration) : euler1(x0, y0, h, n ) : Prgm : Local u, v, w : ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 15
Provided by: pier72
Category:
Tags: lecture | math | see | sm222 | spring

less

Transcript and Presenter's Notes

Title: SM222 Lecture 4 Spring 2006


1
SM222 Lecture 4Spring 2006
  • 1 First-order ODEs
  • 1.4 Numerical solutions

2
Assignments
  • Due
  • 1.3 Problems, p. 22, 1, 5, 6
  • Due Tues. 17 Jan. 2006
  • Pending
  • 1.4 Problems, p. 28, 2, 5 (Maple or Excel)
  • Due Tues. 17 Jan. 2006
  • 3.6 Problems, p. 132, 7, 8 (Maple, Excel or
    TI)
  • Due Wed., 18 Jan. 2006
  • Assign
  • 2.2 Problems, p. 46, 4, 5, 7, 12, 23
  • Due Friday, 20 Jan. 2006

3
Points to Control
  • Whats the idea behind a numerical method?
  • Linearization link between
  • Tangent at a point
  • Solution in the vicinity of the point
  • Eulers method
  • The method
  • How you assess the method relative error

4
Basis for a numerical method
  • Why a numerical method? Example
  • Basis behind method direction field solution
    curve
  • See F05_sl01_4_append.mws

5
Basis for a numerical method
  • IVP direction field

6
Linearization tangent and local behavior
  • Observe use the tangent line to propagate the
    solution beyond a point. How?
  • Linearization (Taylor to 1st-order)
  • The trick (Euler) For

7
Eulers Method (cont)
  • Example
  • Solution

8
Flow Eulers method

9
Eulers Methodexecution (Excel)
  • Example
  • EulerEx.xls

10
Eulers Method (results)
  • Example
  • See S05sl01_3_append.mws
  • Analytic solution (2.2)
  • How assess accuracy?

11
Eulers method assessing accuracy (p. 126)
  • Example
  • Observation anticipate/estimate propagation of
    error linearization
  • Can we improve?

12
Summary Eulers method
13
Appendix Eulers method (Maple)
  • Procedure (see F05sl01_3_append.mws)
  • gt Euler0 proc( F, x0, y0, h, N )
  • gt local i, L, X
  • gt X evalf( x0, y0 )
  • gt L X
  • gt for i from 1 to N do
  • gt X X h, hF(op(X))
  • gt L L, X
  • gt end do
  • gt return matrix( N1, 2, L )
  • gt end proc

14
Appendix Eulers method (Voyage 200)
  • Procedure (see Class Demonstration)
  • euler1(x0, y0, h, n )
  • Prgm
  • Local u, v, w
  • Disp 0,u,v
  • x0 -gt u
  • y0 -gt v
  • For m, 1, n, 1
  • rhs(u,v) -gt w
  • uh -gt u
  • vhw -gt v
  • Disp m,u,v
  • EndFor
  • EndPrgm
Write a Comment
User Comments (0)
About PowerShow.com