2.33333

2.3 | 3 ratings Rate this file 18 Downloads (last 30 days) File Size: 1.12 KB File ID: #33303

Neumerical Methods- Newton Raphson Method

by

 

This script takes the input function adn solve it with the help of newton-Raphson

| Watch this File

File Information
Description

This script takes the input function adn solve it with the help of newton-Raphson

Required Products MATLAB Coder
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
28 Jan 2013 Jan Simon

This implementation has several problems:
1. It is a script, which kill the current state of Matlab by a "clear all".
2. The function to be solved is defined by "d=input('Enter the Function')", but this method allows to input a numerical value only.
3. The loop "for u=0:inf" is not valid in Matlab.
4. In "x=y-[f(x)/f1(x)];" you expect f to be scalar without mentioning it. The square brackets are not useful here.
5. "if x==y" is a bad criterion due to the limited numerical precision. A test like "abs(x - y) / abs(min(x,y)) < 0.0001" would be smarter.

Therefore this code is neither useful nor usable. I cannot reconsider the reason to rate this by 5 stars.

02 Jan 2013 ravi

thank you

17 Oct 2012 Danny MA  
08 Apr 2012 jing  

Contact us