Connecting Tech Pros Worldwide Help | Site Map

Code for finding roots in c programme using Newton-raphson method

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: 4 Weeks Ago
I need a simple code for finding roots in c programme using Newton-raphson method
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: 4 Weeks Ago

re: Code for finding roots in c programme using Newton-raphson method


Quote:

Originally Posted by lionkng View Post

I need a simple code for finding roots in c programme using Newton-raphson method

We don't do your homework here; do it yourself and when you're stuck ask a specific question; a small hint: when you don't know f'(x) (i.e. the first derivative of f w.r.t. x) use (f(x+h)-f(x-h))/2h for a small value of h.

kind regards,

Jos
Reply