# greater 関数

1番目の値が2番目の値より大きいときに真。>の関数形。

## 書き方

### greater(a, b)

**a**

値。式を受け取ります。

**b**

値。式を受け取ります。

## 例題

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

  `greater(2, 1)`

  ソルバーでは、`greater(2, 1)` の答えは `true` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=greater%282%2C%201%29)

## 関連する関数

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

  1番目の値が2番目の値以上のときに真。>=の関数形。
- [equivalent](https://ja.hilberon.com/library/equivalent)

  2つの条件がともに真か、ともに偽のとき True を返します。
- [implies](https://ja.hilberon.com/library/implies)

  第1の条件が真で第2の条件が偽である場合を除き、真。
- [equal](https://ja.hilberon.com/library/equal)

  2つの値が等しいとき True を返します：== の関数版。
- [is_even](https://ja.hilberon.com/library/is_even)

  整数が偶数かどうかを判定します。
- [eliminate_quantifiers](https://ja.hilberon.com/library/eliminate_quantifiers)

  量化子を除いた、同値な条件。

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