MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayTest the bisection algorithm described in Chapter 5 of Steven C. Chapra's textbook, **Applied Numerical Methods with MATLAB for Engineers and Scientists**. The first test case uses the following problem on the interval [1 3].

f(x)=x^2-4=0

The first test will be a single iteration of bisection. Other tests for varying termination criteria, intervals, and other functions will be added later.

12 correct solutions
31 incorrect solutions

Last solution submitted on Mar 30, 2014

2 Comments

Khaled Hamed
on 16 Nov 2012

This is just a test. The value in the 4th test seems to come from 21 iterations only. The stopping criterion is not working also. Did I get it wrong?

Khaled Hamed
on 17 Nov 2012

Oops! my bad, I calculated the stop criterion incorrectly.

2 Comments

Tim
on 2 Oct 2012

This is a pretty lame solution, but it is all you asked for...

Robert Canfield
on 8 Oct 2012

It was just a first step for demonstration. More tests to come.

1 Comment