def balayage(f,k,a,b,n): fa,fb=f(a),f(b) h=10**(-n) x=a if fak: x=x+h return (round(x-h,n),round(x,n))