# is_irreducible 函数

判断多项式在有理数上或模某个素数时是否不可分解。

## 怎么写

### is_irreducible(p, x)

**p**

多项式。接受一个表达式。

**x**

它的变量。接受一个变量。

## 示例

- $\displaystyle \operatorname{is\_irreducible}(x^{2}+1, x) = \operatorname{true}$

  `is_irreducible(x^2 + 1, x)`

  在求解器中，`is_irreducible(x^2 + 1, x)` 的结果是 `true`。

  [在求解器中打开](https://zh.hilberon.com/?q=is_irreducible%28x%5E2%20%2B%201%2C%20x%29)
- $\displaystyle \operatorname{is\_irreducible}(x^{4}+x+1, x, \operatorname{modulus} = 2) = \operatorname{true}$

  `is_irreducible(x^4 + x + 1, x, modulus = 2)`

  在求解器中，`is_irreducible(x^4 + x + 1, x, modulus = 2)` 的结果是 `true`。

  [在求解器中打开](https://zh.hilberon.com/?q=is_irreducible%28x%5E4%20%2B%20x%20%2B%201%2C%20x%2C%20modulus%20%3D%202%29)

## 相关函数

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

  置换的逆。
- [group_order](https://zh.hilberon.com/library/group_order)

  一个群有多少个元素。
- [permutation_order](https://zh.hilberon.com/library/permutation_order)

  置换的阶：使其成为恒等置换的最小幂次。
- [group_elements](https://zh.hilberon.com/library/group_elements)

  群的元素，以轮换记法表示的置换。
- [permutation_power](https://zh.hilberon.com/library/permutation_power)

  置换的整数次幂。
- [field_inverse](https://zh.hilberon.com/library/field_inverse)

  有限域中某个元素的逆元。

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