結果 : max and min of linear function