Skip to content

RankedMax

RankedMax({e_1, e_2, ..., e_i}, n)

returns the n-th largest real value in the list {e_1, e_2, ..., e_i}.

RankedMax({e_1, e_2, ..., e_i}, -n)

returns the n-th smallest real value in the list {e_1, e_2, ..., e_i}.

Examples

>> RankedMax({Pi, Sqrt(3), 2.95, 3}, 3)
2.95

Implementation status

  • ✅ - full supported

Github