結果 : average value of a function on an interval