yi = yk si xk<=xi<xk+1