Connecting Tech Pros Worldwide Help | Site Map

numerical methods for engineer

Newbie
 
Join Date: Sep 2009
Posts: 1
#1: Sep 1 '09
how to make te pseudocode for the newton raphson's method in matlab program
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Sep 1 '09

re: numerical methods for engineer


Quote:

Originally Posted by rngz View Post

how to make te pseudocode for the newton raphson's method in matlab program

There is not much programming involved: for a function f(x) you need to know the first derivative w.r.t. x: f'(x) and all you do is iterate:

x(n)= x(n-1)-f(x(n-1))/f'(x(n-1)).

I don't know Matlab but it can't be too difficult to implement the above.

kind regards,

Jos
Reply