how to compute newton?