Mwnci mean() Function

Syntax

mean(array)

Description

TheĀ mean() method calculates and returns the mean (average) of the given data set.

Example

include("math")
println(mean([1, 3, 5, 7, 9, 11, 13]))
println(mean([1, 3, 5, 7, 9, 11]))
println(mean([-11, 5.5, -3.4, 7.1, -9, 22]))


7
6
1.8666666666666665