Darwin Help

Back to Index

avg

Function avg - average of numbers or list of numbers

Calling Sequence  avg(L1,L2,...)
Parameters
NameTypeDescription

Li {numeric,list(numeric)}a number or list of numbers
Return Type  numeric
Synopsis Finds the average of all the values in the arguments.
Examples
> avg(5, 97, 22, [14,15,16] );
28.1667
> avg(2,3,5,7,11,13,17,19);
9.6250
See also max,   median,   min,   std,   var