This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Numerical Functions  /
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.
  • Max[ ] gives -Infinity.
  • See the Mathematica book: Section 1.1.3Section 3.2.2.
  • See also: Min, Order.

    Further Examples

    This gives the maximum value of this one-dimensional list.

    In[1]:=

    Out[1]=

    You can also find the maximum value in a multi-dimensional list.

    In[2]:=

    Out[2]=

    Here is a function that returns each element in a list that is greater than all previous elements.

    In[3]:=

    In[4]:=

    Out[4]=