Usage example for bisection
related to Exercise 4.6
CROSS-REFERENCE INFORMATION
This function calls:
bisection Implements bisection method to find a root, f(x)=0
This function is called by:
SOURCE CODE
0001 % Usage example for bisection
0002 % related to Exercise 4.6
0003
0004 p = [ 1 1 0 -2];
0005 a = 0.2;
0006 b = 1.5;
0007 tol = 1e-6;
0008 max = 100;
0009 [ x,k ] = bisection( p,a,b,tol,max )