the
average
of
factor
average
(
expression )
Factor and expression yield list
s of integers
, numbers
, or complexes
.
put average(1,3,4) into bill
The average
function returns the arithmetic mean, or average, of the numeric values passed to it. This is equal to the sum of the passed values divided by the number of values.
If all the values are integer
s or number
s, a number
is returned. If any value is a complex
, a complex
is returned.