Code covered by the BSD License  

Highlights from
Newton's Method

1.0

1.0 | 1 rating Rate this file 15 Downloads (last 30 days) File Size: 1.39 KB File ID: #30698
image thumbnail

Newton's Method

by Harmon Amakobe

 

09 Mar 2011 (Updated 11 Mar 2011)

Finds better successive approximations for the root of a function using Newton's Method.

| Watch this File

File Information
Description

This is still a work in progress, having trouble setting tolerances but setting the number of iterations seems to work fine.

MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
11 Mar 2011 Thomas

Note that your m file requires symbolic tool box in order to use the sym function. Another way to do this is to do a numerical differentiation to get f'(x) instead.

12 Oct 2011 Andrew Knyazev

"Number of iterations will be increased accordingly in order to meet the set tolerance value" - in other words the "ite" parameter is always ignored. The code never stops if the tolerance is not met.

Please login to add a comment or rating.
Updates
11 Mar 2011

Fixed for-loop issue.
Fixed nested function iteration issue.
Changed tolerance logic to use absolute value.

Tag Activity for this File
Tag Applied By Date/Time
newtons method Harmon Amakobe 09 Mar 2011 09:55:49
newton Harmon Amakobe 09 Mar 2011 09:55:49
method Harmon Amakobe 09 Mar 2011 09:55:49
newtons Harmon Amakobe 09 Mar 2011 09:55:50
approximation Harmon Amakobe 09 Mar 2011 09:55:50
root Harmon Amakobe 09 Mar 2011 09:55:50

Contact us at files@mathworks.com