Final newton-raphson