def approx(): a=0.2 while h(a)<0.5: a=a+0.01 return a-0.01,a