from math import exp,sqrt x = 1 for n in range(1,7): x = x - ( exp(-x) - sqrt(x) ) / (-exp(-x) - 1 / (2 * sqrt(x)) ) print(x)