跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

求方程的全部解(Solve all solutions of equations,solve_all)

描述方程和不等式的完整解集。

使用这个函数时,求解器只要找到步骤就会展示。

怎么写

solve_all(condition, variables)

condition
要求解的内容。接受一个方程或放在方括号中的方程列表。
variables
一个变量,或变量列表,例如 [x, y]。接受一个变量或变量列表。

solve_all(condition, variables, domain = real|complex)

在实数或复数范围内。

condition
要求解的内容。接受一个方程或放在方括号中的方程列表。
variables
一个变量,或变量列表,例如 [x, y]。接受一个变量或变量列表。
domain = real|complex
在哪个范围内计算:实数或复数。接受real或complex。

示例

  • x2−1=0⇒x=−1 or x=1\displaystyle x^{2}-1 = 0 \Rightarrow x = -1 \text{ or } x = 1
    solve_all(x^2 - 1 = 0, x)

    在求解器中,solve_all(x^2 - 1 = 0, x) 的结果是 x = -1 or x = 1。

    在求解器中打开
  • sin⁡(x)=0⇒C1∈Z and (x=2πC1 or x=π+2πC1)\displaystyle \sin(x) = 0 \Rightarrow C_{1} \in \mathbb{Z} \text{ and } (x = 2 \pi C_{1} \text{ or } x = \pi+2 \pi C_{1})
    solve_all(sin(x) = 0, x)

    在求解器中,solve_all(sin(x) = 0, x) 的结果是 C(1) : integer and (x = 2pi*C(1) or x = pi + 2pi*C(1))。

    在求解器中打开
  • x2−3x−4>0⇒x<−1 or x>4\displaystyle x^{2}-3 x-4 > 0 \Rightarrow x < -1 \text{ or } x > 4
    solve_all(x^2 - 3x - 4 > 0, x)

    在求解器中,solve_all(x^2 - 3x - 4 > 0, x) 的结果是 x < -1 or x > 4。

    在求解器中打开
  • x2+1=0⇒x=i or x=−i\displaystyle x^{2}+1 = 0 \Rightarrow x = i \text{ or } x = -i
    solve_all(x^2 + 1 = 0, x, domain = complex)

    在求解器中,solve_all(x^2 + 1 = 0, x, domain = complex) 的结果是 x = i or x = -i。

    在求解器中打开

示例中用到的函数

  • sin

    角度的正弦,角度以弧度计。

  • solve_identity

    找出使方程对变量的每个取值都成立的参数值。

  • solve

    对一到多个未知量求解方程。

  • numeric_solve

    数值求解方程。

  • linear_solve

    求解由矩阵和右端项给出的线性方程组 A x = b。

  • eliminate

    从方程组中消去变量,留下只含其他变量的方程。

  • find_instance

    满足条件的一个点;不存在时为空列表。