Finds the maximum of a series or two expressions.
MAX(series)
(val, idx) = MAX(series)
MAX(val1, val2)
series |
- |
Optional. A series. Defaults to the current Window. |
val1 |
- |
Any integer, real or series. |
val2 |
- |
Any integer, real or series. |
A scalar. MAX(val1, val2) can return a series.
(val, idx) = MAX(series) returns both the maximum value and the index of the maximum.
W1: gsin(100,.01)
max(W1)
returns 1.0
(v, idx) = max(W1)
v == 1.0
idx == 26
max(10, 20) returns 20.
max({2, 3, 4}, 3) returns the series {3, 3, 4}.
max({1, 2, 3}, {0, 4, 2}) returns the series {1, 4, 3}.
See COLMAX to find the maximums of array columns.
See VMAX to compare more than two expressions.
See MAXLOC to obtain the location of the maximum.
See MARKMAX to mark the maximum value of a series with a symbol.