from math import exp l = 0 for i in range (40): l = i/100000 f = exp(-1500*l) if abs(f-0.7) <= 0.01: print(l,f)