Average Value of a Function

Slide points a & b to change interval. Enter new f(x) in Input field.