Thanks Espen. I have already found the wikipedia link but the method is a little different. My question is not about Newton method but about how to implement my Newton-like method in C# or even pseudo code? I am stuck at how to change the function from the form
f(x) = 0 [1]
to
x = g(x) [2]
How can we code them? Specially when my function is not just simple like
x2 - 2x - 1 = 0
but can be VERY VERY COMPLEX like
log(sin(x^2)) = 0
If my method( I mean the way I change from form [1] to form [2] then guess a value and use it in the form [2] to have a new value, then use it in the function [2] again and again until the value stop changing) is not correct, can someone tell me how to present such a complex function in code C#? And how to code the calculating the differential with that fucntion? Please tell me cause I have no idea now.