# 最大值（Maximum of some numbers，max）

若干个数中的最大值。

## 怎么写

### max(a, b, ...)

各参数中的最大值。

**a**

一个数。接受一个数。

**b**

一个数。接受一个数。

### max(list)

列表中的最大元素。

**list**

一个数值列表。接受一个列表。

## 示例

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

  `max(3, 7, 5)`

  在求解器中，`max(3, 7, 5)` 的结果是 `7`。

  [在求解器中打开](https://zh.hilberon.com/?q=max%283%2C%207%2C%205%29)
- $\displaystyle \max(\left[ 3, 7, 5 \right]) = 7$

  `max([3, 7, 5])`

  在求解器中，`max([3, 7, 5])` 的结果是 `7`。

  [在求解器中打开](https://zh.hilberon.com/?q=max%28%5B3%2C%207%2C%205%5D%29)

## 相关函数

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

  若干个数中的最小值。
- [log2](https://zh.hilberon.com/library/log2)

  以 2 为底的对数。
- [mod](https://zh.hilberon.com/library/mod)

  整数除法的余数。
- [log10](https://zh.hilberon.com/library/log10)

  以 10 为底的对数。
- [negate](https://zh.hilberon.com/library/negate)

  一个数的相反数：负号的函数形式。
- [log](https://zh.hilberon.com/library/log)

  对数：ln 为自然对数，log 可指定任意底数。

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