Matlab Database > Non-Linear Problems > Secante

Matlab File(s)

Title: Secante
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 secant method.
The root must be isolated as a initial condition.

Ejemplo:

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

--------|----------|------------|
Iter. Aprox. Error.
--------|----------|------------|
ini 2.0000 3.0000
1 0.8000 1.2000
2 0.9286 0.1286
3 1.0083 0.0797
4 0.9997 0.0086
5 1.0000 0.0003
--------|----------|------------|

c = 1.0000

E = 3.0353e-04

fc = -2.5089e-06
Keywords: ---
File Name: secante.m
File Size: 4 KB
File Version: 1.0
Matlab Version: 7.0 (R14)
Date: 2011-06-13
Downloads: 806
Download File

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