結果 : average value of a function using integrals