This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

RankedMax

RankedMax
gives the n^(th) largest element in list.
  • RankedMax yields a definite result if all its arguments are real numbers.
The second largest of three numbers:
The second largest of three numbers:
In[1]:=
Click for copyable input
Out[1]=
RankedMax works with approximate numeric quantities:
And exact numeric quantities:
Basic symbolic simplification is done automatically:
Expand into a Piecewise function:
Integrate expressions involving RankedMin:
Solve equations and inequalities:
Plot the bivariate RankedMax functions:
Plot the contours of bivariate and trivariate RankedMin functions:
RankedMax as a function of x:
Compute the expectation of the second smallest (median) variable:
Alternatively, use OrderDistribution:
Compute the probability of the second smallest variable being less than 1:
RankedMax is equivalent to Max:
RankedMax is equivalent to Min:
RankedMax is equivalent to RankedMin:
RankedMax is equivalent to Quantile:
RankedMax is equivalent to Sort[{x1, ..., xn}, Greater]k:
The equivalent Piecewise function has disjoint piecewise case domains:
Algebraically prove the piecewise case domains are disjoint:
Visually show it:
Algebraically prove the piecewise case domains are pairwise disjoint:
Visually show it:
Two-dimensional sublevel sets:
Three-dimensional sublevel sets:
New in 8