Max
Usage
• Max[ , , ... ] 给出  中的数值最大者.
• Max[ , , ... ,  , ... , ... ] 给出所有列表中的最大元素.
Notes
• 如果Max的所有参数都是实数,它得到一个明确的结果. • 其它情形下,Max会进行一些简化. • Max[ ] 得到 -Infinity.
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]=
|
|