average value of a function.mp4