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

Max

Max
yields the numerically largest of the .
Max
yields the largest element of any of the lists.
  • Max yields a definite result if all its arguments are real numbers.
  • In other cases, Max carries out some simplifications.
Maximum of two numbers:
Maximum of a list:
Maximum of two numbers:
In[1]:=
Click for copyable input
Out[1]=
 
Maximum of a list:
In[1]:=
Click for copyable input
Out[1]=
Max works with exact numeric quantities:
Max effectively flattens out all lists:
Basic symbolic simplification is done automatically:
Simplify a symbolic Max:
Integrate expressions involving Max:
Reduce inequalities involving Max:
Max works on sparse arrays:
Use in bounds of iterator variables:
Cumulative maxima:
Find the highest point of a plotted curve:
Mean of the length ratio of a randomly broken stick:
R-function-based solid modeling:
Use FullSimplify to simplify Max expressions:
Maximize a function containing Max:
Max can be differentiated:
Max flattens lists, rather than being Listable:
The one-argument form evaluates for any argument:
Two-dimensional sublevel sets:
Three-dimensional sublevel sets:
New in 1 | Last modified in 5