import math
step = 1.
min_step = 1e-10
x = 0.
while step >= min_step: while math.exp(-0.5*x*x) > 0: x += step x -=step step/=10 print ("Le nombre le plus petit est : {0}".format(math.exp(-0.5*x*x))) print ("Vient de e^(-0.5*x**2) avec x = {0}".format(x))