newton function

function g is a function that  g = 0