Find Average Values of Functions on Intervals