New Word 2007 Document (28)

New Word 2007 Document (28) - APPROX_ROOT is not close to a...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise : Type in this function as the file bisect.m . Then try the command: x = bisect ( 0, 3 ) Is the value x a root of the equation? cos ( x ) = x? Review : What does the sign(x) function do? What if x is 0? What does the statement [ a, c, b; fa, fc, fb ] do? What other ways could this be done? Under what circumstances could this program return an incorrect result? That is,
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: APPROX_ROOT is not close to a root of the function. • Under what circumstances could this program run "forever?" How do you stop MATLAB when it gets into an infinite loop? • If I compute x = bisect ( a, b) , then what can I claim is true about x and about f(x) ?...
View Full Document

This document was uploaded on 05/07/2010.

Ask a homework question - tutors are online