Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Maximum of some numbers (max)

The largest of some numbers.

How to write it

max(a, b, ...)

The largest of the arguments.

a
A number. Takes a number.
b
A number. Takes a number.

max(list)

The largest element of a list.

list
A list of numbers. Takes a list.

Examples

  • max⁡(3,7,5)=7\displaystyle \max(3, 7, 5) = 7
    max(3, 7, 5)

    In the solver, max(3, 7, 5) gives 7.

    Open in the solver
  • max⁡([3,7,5])=7\displaystyle \max(\left[ 3, 7, 5 \right]) = 7
    max([3, 7, 5])

    In the solver, max([3, 7, 5]) gives 7.

    Open in the solver
  • min

    The smallest of some numbers.

  • log2

    Logarithm to base 2.

  • mod

    Remainder of a division of whole numbers.

  • log10

    Logarithm to base 10.

  • negate

    The negative of a number: the function form of a minus sign.

  • log

    Logarithm: natural with ln, or to any base with log.