# equal 函数

两个值相等时为真：== 的函数形式。

## 怎么写

### equal(a, b)

**a**

一个值。接受一个表达式。

**b**

一个值。接受一个表达式。

## 示例

- $\displaystyle \operatorname{equal}(1, 1) = \operatorname{true}$

  `equal(1, 1)`

  在求解器中，`equal(1, 1)` 的结果是 `true`。

  [在求解器中打开](https://zh.hilberon.com/?q=equal%281%2C%201%29)

## 相关函数

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

  当第一个值不小于第二个值时返回真：>= 的函数形式。
- [less_equal](https://zh.hilberon.com/library/less_equal)

  当第一个值至多等于第二个值时返回真：\<= 的函数形式。
- [equivalent](https://zh.hilberon.com/library/equivalent)

  两个条件同为真或同为假时为真。
- [eliminate_quantifiers](https://zh.hilberon.com/library/eliminate_quantifiers)

  去掉量词后的等价条件。
- [greater](https://zh.hilberon.com/library/greater)

  当第一个值大于第二个值时返回真：> 的函数形式。
- [cylindrical_decomposition](https://zh.hilberon.com/library/cylindrical_decomposition)

  把条件成立的范围依次描述为每个变量的上下界。

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