lecturenotes10_8 - Newtons Method, Bisection and Function...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Newton’s Method, Bisection and Function Handles October 8, 2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Topics 1. Comparing Newton’s Method with Bisection 2. Generalizing the Newton’s Method function: passing the function as an argument creating a function handle (and using it) 3. Generalizing the Bisection Function (as an example of function handles) 4. Review of Histograms
Background image of page 2
Newton’s Method vs Bisection Each of these methods has it’s own strengths and weaknesses Newton’s method will converge faster, if the slopes do not get too small near the root (or become zero) Bisection converges more slowly, but will not diverge in the process
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example (1) Modify the bisection function that we wrote in class on Friday to solve the function f(x) = x^2 – 6x + 2. How many iterations does this take starting with xmin = 4 and xmax = 7? How many iterations did it take Newton’s Method to converge on the root with x1 = 7?
Background image of page 4
Generalizing the Solution In the previous example, we had to modify the code of the function, since the
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/25/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).

Page1 / 11

lecturenotes10_8 - Newtons Method, Bisection and Function...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online