Average Value of a Function
The interval beneath the curve is divided into two or more partitions, and a sample -value is taken from each partition. The user chooses the number of partitions and the position of the sample point. The corresponding values of the function are averaged, and the result is compared with the actual average.
The width of each partition is computed with .
The position of a sample point in the partition is controlled by the value of the offset (, , or ) times the partition width.
The approximate average is computed with .
The actual average is computed by integration with .