Lecture 14 - Graphical Method Progressive Enlargement Two...

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

View Full Document Right Arrow Icon
Graphical Method - Progressive Enlargement Two distinct roots
Background image of page 1

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

View Full DocumentRight Arrow Icon
Graphical Method Graphical method is useful for getting an idea of what’s going on in a problem, but depends on eyeball. Use bracketing methods to improve the accuracy: Bisection and false-position methods
Background image of page 2
Bracketing Methods Both bisection and false-position methods require the root to be bracketed by the endpoints. How to find the endpoints? * plotting the function * incremental search * trial and error
Background image of page 3

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

View Full DocumentRight Arrow Icon
Incremental Search
Background image of page 4
function xb=incsearch(func,xmin,xmax,ns) %incsearch: incremental search root locator % . .. see the rest of comments on page 120 of Chapara textbook if nargin<4,ns=50; end % if ns blank set to 50 % Incremental search x=linspace(xmin,xmax,ns); f=func(x); nb=0; xb=[]; %xb is null unless sign change detected for k=1:length(x)-1 if sign(f(k))~= sign(f(k+1)) %check for sign nb = nb+1; xb(nb,1)=x(k); xb(nb,2)=x(k+1); end end if isempty(xb) %display thar no brackets were found disp('no brackets forind')
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 11/15/2010 for the course EGM 5403 taught by Professor Mei during the Spring '10 term at University of Florida.

Page1 / 16

Lecture 14 - Graphical Method Progressive Enlargement Two...

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