modified newton method untested, dcompute for any deriv