Skip to content

Max

The largest of its arguments.

FungrimMaxFungrim entry47d430632d1cbfe28bWolfram LanguageMax!SageMathmax([$*,])SymPyMax($*,)
Max(a, b, …)the largest of two or more values.
Max(list)the largest value in a list.

Domain: Arithmetic

Details
  • The largest of its arguments, or of a single list argument.
  • Multiple arguments -- lists included -- are flattened into one pool rather than compared pairwise or threaded element-wise. See Min.
  • Commutative and associative: order and grouping don't matter.
  • NaN poisons the result: it beats every other comparison, even .
  • With no arguments, compute-engine returns NaN rather than , the true identity element.

Examples

See also: Min, Clamp