Computer Arithmetic Continued and Root Finding Algorithms | MATH 441, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Material Type: Notes; Professor: McNelis; Class: Intro Numerical Analysis; Subject: Mathematics; University: Western Carolina University; Term: Fall 2002;

Typology: Study notes

Pre 2010

Uploaded on 08/18/2009

koofers-user-t34
koofers-user-t34 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MATH 441/541 - Numerical Analysis
Sixth Meeting: Computer Arithmetic Continued & Root Finding Algorithms
Thursday, September 27th
uller’s Method
1. Given the continuous function f(x) and three reasonable guesses to the root, x0,x1, and x2.
2. A Visual Explanation:
3. The Formula for the New Guess for the Root: Given three guesses, x0,x1, and x2generate the new
approximation, x3as:
x3=x22c
b+ sgn(b)b24ac
where
c=f(x2)
b=(x0x2)2(f(x1)f(x2)) (x1x2)2(f(x0)f(x2))
(x0x2)(x1x2)(x0x1)
a=(x1x2)2(f(x0)f(x1)) (x0x2)2(f(x1)f(x2))
(x0x2)(x1x2)(x0x1)
4. Strengths and Weaknesses:
5. Rates of Convergence for Methods1:
Bisection Secant Newton False Position Fixed Point uller’s
α= 2
α1α=1 + 5
21.62 (for simple roots) α= 1 α1.839
α= 1
(for multiple roots)
1For uller’s Method rate in particular see Michael T. Heath. Scientific Computing: An Introductory Survey, 2nd Ed..
McGraw Hill, 2002. Page 234
1
pf2

Partial preview of the text

Download Computer Arithmetic Continued and Root Finding Algorithms | MATH 441 and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 441/541 - Numerical Analysis Sixth Meeting: Computer Arithmetic Continued & Root Finding Algorithms Thursday, September 27 th

M¨uller’s Method

  1. Given the continuous function f (x) and three reasonable guesses to the root, x 0 , x 1 , and x 2.
  2. A Visual Explanation:
  3. The Formula for the New Guess for the Root: Given three guesses, x 0 , x 1 , and x 2 generate the new approximation, x 3 as:

x 3 = x 2 − 2 c b + sgn(b)

b^2 − 4 ac where

c = f (x 2 )

b = (x^0 −^ x^2 )

(^2) (f (x 1 ) − f (x 2 )) − (x 1 − x 2 ) (^2) (f (x 0 ) − f (x 2 )) (x 0 − x 2 )(x 1 − x 2 )(x 0 − x 1 )

a =

(x 1 − x 2 )^2 (f (x 0 ) − f (x 1 )) − (x 0 − x 2 )^2 (f (x 1 ) − f (x 2 )) (x 0 − x 2 )(x 1 − x 2 )(x 0 − x 1 )

  1. Strengths and Weaknesses:
  2. Rates of Convergence for Methods^1 :

Bisection Secant Newton False Position Fixed Point M¨uller’s α = 2 α ≈ 1 α = 1 +^

≈ 1. 62 (for simple roots) α = 1 α ≈ 1. 839 α = 1 (for multiple roots)

(^1) For M¨uller’s Method rate in particular see Michael T. Heath. Scientific Computing: An Introductory Survey, 2nd (^) Ed.. McGraw Hill, 2002. Page 234

1

Interpolation And Polynomial Approximation

  • Section 3.1: Interpolation and the Lagrange Polynomial
    1. The Concept:
    2. How is this different from / similar to regression?
    3. How is this different from / similar to using Taylor Polynomials?
    4. Reminder of Taylor Polynomials and Their Error Terms:
    5. Lagrange Polynomial (a) Deriving the Concept and Terms: i. Ln,k(x) = Lk(x) = (x^ −^ x^0 )(x^ −^ x^1 )^ · · ·^ (x^ −^ xk−^1 )(x^ −^ xk+1)^ · · ·^ (x^ +^ xn) (xk − x 0 )(xk − x 1 ) · · · (xk − xk− 1 )(xk − xk+1) · · · (xk + xn) ii. The nth^ degree Lagrange Polynomial, Pn(x), through the points (x 0 , f (x 0 )), · · · , (xn, f (xn)) is given by:

Pn(x) = Px 0 ,x 1 ,···,xn (x) = L 0 (x)f (x 0 ) + L 1 (x)f (x 1 ) + · · · + Ln(x)f (xn)

(b) An Example: Find the Second Order Lagrange Polynomial through the points (1, 3), (4, 2) and (6, 5), from the function f (x), and use it to approximate f (2). (c) The Error Term: (d) The Uniqueness of the Interpolating Polynomial: Theorem 3.2: If x 0 , x 1 , · · · , xn are n + 1 distinct numbers and f is a function whose values are given at these numbers, then a unique polynomial P (x) of degree at most n exists with

f (xk) = P (xk), k = 0, 1 , · · · n

where this polynomial is given by

P (x) =

∑^ n k=

f (xk)Ln,k(x)

  • Section 3.2 Divided Differences
    1. Question: What if you had P 1 (x) (through points (x 0 , f (x 0 )) and (x 1 , f (x 1 ))) and you wanted to generate P 2 (x) (which also passes through (x 2 , f (x 2 ))? How would you do this?
    2. New Notations: (a) New way for writing the Lagrange Polynomial of degree n, Pn(x): (b) Divided Difference Notation:
    3. Connecting the Lagrange Polynomial and Divided Differences:
    4. An Excel Example (See Excel DividedDifferences.xls Handout)