結果 : find average value of function over interval