# greater 函数

当第一个值大于第二个值时返回真：> 的函数形式。

## 怎么写

### greater(a, b)

**a**

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

**b**

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

## 示例

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

  `greater(2, 1)`

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

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

## 相关函数

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

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

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

  除非第一个条件为真而第二个为假，否则为真。
- [equal](https://zh.hilberon.com/library/equal)

  两个值相等时为真：== 的函数形式。
- [is_even](https://zh.hilberon.com/library/is_even)

  检验一个整数是否为偶数。
- [eliminate_quantifiers](https://zh.hilberon.com/library/eliminate_quantifiers)

  去掉量词后的等价条件。

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