Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Matlab
Date: Thu, 11 Mar 2010 18:50:23 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 2
Message-ID: <hnbe1f$l25$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1268333423 21573 172.30.248.38 (11 Mar 2010 18:50:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Mar 2010 18:50:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2261257
Xref: news.mathworks.com comp.soft-sys.matlab:616039

Write a function m-file with input a,b that outputs the first 20 iterations of the Bisection Method to find a root of the equation f(x)=0. The m-file should output the root to 15 decimal places.(include a short comments on each line to explain the commands used)
How to do this question? If anyone know, please help me. Thank you.