# 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

- $\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](https://hilberon.com/?q=solve_all%28x%5E2%20-%201%20%3D%200%2C%20x%29)
- $\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](https://hilberon.com/?q=solve_all%28sin%28x%29%20%3D%200%2C%20x%29)
- $\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](https://hilberon.com/?q=solve_all%28x%5E2%20-%203x%20-%204%20%3E%200%2C%20x%29)
- $\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](https://hilberon.com/?q=solve_all%28x%5E2%20%2B%201%20%3D%200%2C%20x%2C%20domain%20%3D%20complex%29)

## Functions its examples use

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

  Sine of an angle in radians.

## Related functions

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

  Find the values of the parameters that make an equation true for every value of the variable.
- [solve](https://hilberon.com/library/solve)

  Solve equations for one or more unknowns.
- [numeric_solve](https://hilberon.com/library/numeric_solve)

  Solve equations numerically.
- [linear_solve](https://hilberon.com/library/linear_solve)

  Solve a linear system A x = b given by its matrix and right-hand side.
- [eliminate](https://hilberon.com/library/eliminate)

  Eliminate variables from a system of equations, leaving equations in the others.
- [find_instance](https://hilberon.com/library/find_instance)

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

---
Source: https://hilberon.com/library/solve_all
