from math import * def f(x): return 1.-log(x) def df(x): return -1.0/x x=3; xp=0 n = 50 i = 0 while i