# 多项式的系数（Coefficients of a polynomial，coefficients）

列出多项式的系数，常数项在前。

## 怎么写

### coefficients(polynomial, x)

**polynomial**

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

**x**

多项式的变量。接受一个变量。

## 示例

- $\displaystyle \operatorname{coefficients}(2 x^{3}-x+5, x) = \left[ 5, -1, 0, 2 \right]$

  `coefficients(2x^3 - x + 5, x)`

  在求解器中，`coefficients(2x^3 - x + 5, x)` 的结果是 `[5, -1, 0, 2]`。

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

## 相关函数

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

  按某个变量的幂次合并表达式中的项。
- [cancel](https://zh.hilberon.com/library/cancel)

  约去分数的公因式。
- [complex_expand](https://zh.hilberon.com/library/complex_expand)

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

  将有理式拆分成部分分式。
- [cyclotomic](https://zh.hilberon.com/library/cyclotomic)

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

  把分数合并成同分母的一个分数。

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