結果 : define maximum and minimum value of a function