Matlab Database > Non-Linear Problems > Regula-Falsi

Matlab File(s)

Title: Regula-Falsi
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 regula-falsi method.
The root must be isolated as a initial condition.

Ejemplo:

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

--------|----------|------------|
Iter. Aprox. Error.
--------|----------|------------|
ini 0.3333 3.0000
1 0.6000 0.2667
2 0.7778 0.1778
3 0.8824 0.1046
4 0.9394 0.0570
5 0.9692 0.0298
6 0.9845 0.0153
7 0.9922 0.0077
8 0.9961 0.0039
--------|----------|------------|

c = 0.9961

E = 0.0039

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

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