Lecture 15 - Hand Calculation Example Bisection Method iter...

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

View Full Document Right Arrow Icon
Hand Calculation Example [ ] [ ] 2 3 0 2 x , x estimeates initial 0 3 x 2 x x f Example u l 2 . , . ) ( : = = - - = 0375 0 02496 0 99375 2 0125 3 975 2 6 075 0 0502 0 0125 3 05 3 975 2 5 15 0 0994 0 975 2 05 3 9 2 4 3 0 2025 0 05 3 2 3 9 2 3 6 0 39 0 9 2 2 3 6 2 2 2 1 44 1 6 2 2 3 0 2 1 x x f x x x iter r r u l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ) ( - - - - Bisection Method f(2) = - 3, f(3.2) = 0.84
Background image of page 1

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

View Full DocumentRight Arrow Icon
Hand Calculation Example [ ] [ ] 2 3 0 2 x , x estimeates initial 0 3 x 2 x x f Example u l 2 . , . ) ( : = = - - = Bisection Method -3 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3 3.1 3.2 3.3
Background image of page 2
You need to specify the function “func” when calling this function M-file in textbook
Background image of page 3

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

View Full DocumentRight Arrow Icon
break: terminate a “for” or “while” loop a x b ya yb y Use “feval” to evaluate the function “func” An interactive M-file
Background image of page 4
1. Find root of Manning ' s equation 2. Two other functions ( 29 ( 29 0 S 2h b bh n 1 Q f(h) 1/2 2/3 5/3 = + - = Examples: Bisection 0 x e ) x ( f 2 x = - = - 0 1 x 3 x ) x ( f 3 = + - =
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 09/05/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Fall '09 term at University of Florida.

Page1 / 12

Lecture 15 - Hand Calculation Example Bisection Method iter...

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