結果 : average value of function using integral