The function calculates the average of the elements in a specified one-dimensional list. It adds up all the values in the list and divides the sum by the number of elements to find the arithmetic mean.
Example:
avg(List) → number | |||||
| |||||
The result is a=b=c=d=5' and e=15. | |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=Functions&obj=objidm4y33fov8mi0o7kzn2fikvg) |
Example:
| |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=Functions&obj=objidvsr47ihh7mhyn1oyu656bp) |