How To Find Average Of A Function