Name: max
Category: Statistics
Description:
Compute the maximum value of a list of values. If any NaN values are found, the function yields the last NaN in the input.
Syntax:
max(a, b, c, ...)
max(A)
max(A, dimension)
Examples:
max(2, 3, 4, 1)
4
max([2, 3, 4, 1])
4
max([2, 5; 4, 3])
5
max([2, 5; 4, 3], 1)
[5, 4]
max([2, 5; 4, 3], 2)
IndexError: Index out of range (2 > 1)
max(2.7, 7.1, -4.5, 2.0, 4.1)
7.1
min(2.7, 7.1, -4.5, 2.0, 4.1)
-4.5
See also: mean, median, min, prod, std, sum, variance