Function: math[mean] - linear and quadratic mean of a real-valued function
Calling Sequence:
mean(f, x=a .. b, linear);
mean(f, x=a .. b, quadratic);
Parameters:
f -
expression in x
x -
name
a, b -
border points
Description:
mean computes the linear and quadratic means, respectively, of a function in one real on a specified interval.
With the (optional) fourth argument 'floats', the result is returned as a floating-point number.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, mean).
Examples:
> with(math, mean):
> mean(sin(x), x=0 .. Pi, linear);
> mean(sin(x), x=0 .. Pi, quadratic);
Version History:
Version 1.0 as of December 01, 1997