Matlab Database > Non-Linear Problems > Newton Methods > Newton method

Matlab File(s)

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

Ejemplo:

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

--------|----------|------------|
Iter. Aprox. Error.
--------|----------|------------|
ini 3.0000 3.0000
1 1.6667 1.3333
2 1.1333 0.5333
3 1.0078 0.1255
4 1.0000 0.0078
5 1.0000 0.0000
--------|----------|------------|

c = 1.0000

E = 9.3132e-10

fc = 3.0518e-05

Keywords: ---
File Name: newton.m
File Size: 4 KB
File Version: 1.0
Matlab Version: 7.0 (R14)
Date: 2011-06-13
Downloads: 2368
Download File

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