# numeric_solve 函数

数值求解方程。

## 怎么写

### numeric_solve(equations, variables)

**equations**

要求解的内容；方程列表即为方程组。接受一个方程或放在方括号中的方程列表。

**variables**

一个变量，或变量列表，例如 \[x, y\]。接受一个变量或变量列表。

## 示例

- $\displaystyle x^{3}-x-1 = 0 \Rightarrow x = 1.324717957244746,\quad x = -0.662358978622373-0.5622795120623012 i,\quad x = -0.662358978622373+0.5622795120623012 i$

  `numeric_solve(x^3 - x - 1 = 0, x)`

  在求解器中，`numeric_solve(x^3 - x - 1 = 0, x)` 的结果是 `[[x -> 1.324717957244746], [x -> -0.662358978622373 - 0.5622795120623012i], [x -> -0.662358978622373 + 0.5622795120623012i]]`。

  [在求解器中打开](https://zh.hilberon.com/?q=numeric_solve%28x%5E3%20-%20x%20-%201%20%3D%200%2C%20x%29)

## 相关函数

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

  对一到多个未知量求解方程。
- [linear_solve](https://zh.hilberon.com/library/linear_solve)

  求解由矩阵和右端项给出的线性方程组 A x = b。
- [solve_all](https://zh.hilberon.com/library/solve_all)

  描述方程和不等式的完整解集。
- [solve_identity](https://zh.hilberon.com/library/solve_identity)

  找出使方程对变量的每个取值都成立的参数值。
- [least_squares](https://zh.hilberon.com/library/least_squares)

  A x = b 的最小二乘解。
- [find_root](https://zh.hilberon.com/library/find_root)

  从起始值出发，用数值方法求一个根。

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