# 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

- $\displaystyle \max(3, 7, 5) = 7$

  `max(3, 7, 5)`

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

  [Open in the solver](https://hilberon.com/?q=max%283%2C%207%2C%205%29)
- $\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](https://hilberon.com/?q=max%28%5B3%2C%207%2C%205%5D%29)

## Related functions

- [min](https://hilberon.com/library/min)

  The smallest of some numbers.
- [log2](https://hilberon.com/library/log2)

  Logarithm to base 2.
- [mod](https://hilberon.com/library/mod)

  Remainder of a division of whole numbers.
- [log10](https://hilberon.com/library/log10)

  Logarithm to base 10.
- [negate](https://hilberon.com/library/negate)

  The negative of a number: the function form of a minus sign.
- [log](https://hilberon.com/library/log)

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

---
Source: https://hilberon.com/library/max
