結果 : python find extrema of function