import numpy as np def newtonRap(fn,dfn,h,tol,maxiter): for iteration in range(maxiter): hnew=h-fn(h)/dfn(h) if np.abs(hnew-h)