import math def newton( fn,df, start1, err): a=float(start1) fa=fn(a) fpa=df(a) while True: c=a-fa/fpa b=a if math.fabs(b-a)