# negate 函数

一个数的相反数：负号的函数形式。

## 怎么写

### negate(x)

**x**

这个数或表达式。接受一个表达式。

## 示例

- $\displaystyle \operatorname{negate}(5) = -5$

  `negate(5)`

  在求解器中，`negate(5)` 的结果是 `-5`。

  [在求解器中打开](https://zh.hilberon.com/?q=negate%285%29)

## 相关函数

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

  数值之和：+ 的函数形式。
- [mod](https://zh.hilberon.com/library/mod)

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

  幂：^ 的函数形式。
- [min](https://zh.hilberon.com/library/min)

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

  除法的整数商，不含余数。
- [max](https://zh.hilberon.com/library/max)

  若干个数中的最大值。

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