結果 : how to check a function is increasing