Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Solve all solutions of equations (solve_all)

Describe the complete solution set of equations and inequalities.

With this function, the solver shows the steps whenever it finds them.

How to write it

solve_all(condition, variables)

condition
What to solve. Takes an equation, or a list of equations in brackets.
variables
A variable, or a list of variables such as [x, y]. Takes a variable, or a list of variables.

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

Over the real or over the complex numbers.

condition
What to solve. Takes an equation, or a list of equations in brackets.
variables
A variable, or a list of variables such as [x, y]. Takes a variable, or a list of variables.
domain = real|complex
Where to work: the real or the complex numbers. Takes real or complex.

Examples

  • 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)

    In the solver, solve_all(x^2 - 1 = 0, x) gives x = -1 or x = 1.

    Open in the solver
  • 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)

    In the solver, solve_all(sin(x) = 0, x) gives C(1) : integer and (x = 2pi*C(1) or x = pi + 2pi*C(1)).

    Open in the solver
  • 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)

    In the solver, solve_all(x^2 - 3x - 4 > 0, x) gives x < -1 or x > 4.

    Open in the solver
  • 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)

    In the solver, solve_all(x^2 + 1 = 0, x, domain = complex) gives x = i or x = -i.

    Open in the solver

Functions its examples use

  • sin

    Sine of an angle in radians.

  • solve_identity

    Find the values of the parameters that make an equation true for every value of the variable.

  • solve

    Solve equations for one or more unknowns.

  • numeric_solve

    Solve equations numerically.

  • linear_solve

    Solve a linear system A x = b given by its matrix and right-hand side.

  • eliminate

    Eliminate variables from a system of equations, leaving equations in the others.

  • find_instance

    A point that meets a condition, or an empty list when there is none.