Code covered by the BSD License  

Highlights from
Newton's Method

1.0

1.0 | 1 rating Rate this file 4 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 (R2010b)
Tags for This File  
Everyone's Tags
approximation, method, newton, newtons, newtons method, root
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
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.

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.

Updates
11 Mar 2011

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

Contact us