# 多项式的次数（Degree of a polynomial，degree）

多项式关于某个变量的次数。

## 怎么写

### degree(polynomial, x)

**polynomial**

一个多项式，例如 x^2 - 2。接受一个多项式。

**x**

用来求次数的变量。接受一个变量。

## 示例

- $\displaystyle \operatorname{degree}(x^{3}+x, x) = 3$

  `degree(x^3 + x, x)`

  在求解器中，`degree(x^3 + x, x)` 的结果是 `3`。

  [在求解器中打开](https://zh.hilberon.com/?q=degree%28x%5E3%20%2B%20x%2C%20x%29)

## 相关函数

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

  分数的分母。
- [cyclotomic](https://zh.hilberon.com/library/cyclotomic)

  给定阶数的分圆多项式。
- [discriminant](https://zh.hilberon.com/library/discriminant)

  多项式关于某个变量的判别式。
- [complex_expand](https://zh.hilberon.com/library/complex_expand)

  在假定变量为实数的前提下展开表达式。
- [expand](https://zh.hilberon.com/library/expand)

  把乘积和乘方展开成和式。
- [collect](https://zh.hilberon.com/library/collect)

  按某个变量的幂次合并表达式中的项。

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