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
solve_all(x^2 - 1 = 0, x)In the solver,
Open in the solversolve_all(x^2 - 1 = 0, x)givesx = -1 or x = 1.solve_all(sin(x) = 0, x)In the solver,
Open in the solversolve_all(sin(x) = 0, x)givesC(1) : integer and (x = 2pi*C(1) or x = pi + 2pi*C(1)).solve_all(x^2 - 3x - 4 > 0, x)In the solver,
Open in the solversolve_all(x^2 - 3x - 4 > 0, x)givesx < -1 or x > 4.solve_all(x^2 + 1 = 0, x, domain = complex)In the solver,
Open in the solversolve_all(x^2 + 1 = 0, x, domain = complex)givesx = i or x = -i.
Functions its examples use
- sin
Sine of an angle in radians.
Related functions
- 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.