結果 : how to find maximum value of a function in python