newtone solve implemented