geometric SciMax Toolbox geosum

SciMax Toolbox >> geometric_mean

geometric_mean

Maxima Function

Calling Sequence

geometric_mean (list)
geometric_mean(matrix)

Description

The geometric mean, defined as

/  n      \ 1/n
| /===\   |
|  ! !    |
|  ! !  x |
|  ! !   i|
| i = 1   |
\         /
Example:

(%i1) load (descriptive)$
(%i2) load (numericalio)$
(%i3) y : [5, 7, 2, 5, 9, 5, 6, 4, 9, 2, 4, 2, 5]$
(%i4) geometric_mean (y), numer;
(%o4)                   4.454845412337012
(%i5) s2 : read_matrix (file_search ("wind.data"))$
(%i6) geometric_mean (s2);
(%o6) [8.82476274347979, 9.22652604739361, 10.0442675714889,
                            14.61274126349021, 13.96184163444275]

See also functions and .

geometric SciMax Toolbox geosum