Finding the zeros of the function Newton's method