Matlab Database > Non-Linear Problems > Bisection method

Matlab File(s)

Title: Bisection method
Primary Author: Alexeis Companioni
Other Authors:Vianka Orovio
E-Mail: alexeiscg-AT-gmail.com
Institution: University of Informatics Sciences
Description: This function allows to solve nonlinear ecuations using the bisection method.
The root must be isolated as a initial condition.

Ejemplo:

f=sym('x^2-1');
[c,E,fc]=biseccion(f,0,3,0.005,20);

--------|----------|------------|
Iter. Aprox. Error.
--------|----------|------------|
ini 1.5000 1.5000
1 0.7500 0.7500
2 1.1250 0.3750
3 0.9375 0.1875
4 1.0313 0.0938
5 0.9844 0.0469
6 1.0078 0.0234
7 0.9961 0.0117
8 1.0020 0.0059
9 0.9990 0.0029
--------|----------|------------|

c = 0.9990

E = 0.0029

fc = -0.0020
Keywords: ---
File Name: biseccion.m
File Size: 4 KB
File Version: 1.0
Matlab Version: 7.0 (R14)
Date: 2011-06-13
Downloads: 1134
Download File

Upload your own files today! Click here for more information.