compare une fonction et un nombre