Eliminate variables from equations (eliminate)
Eliminate variables from a system of equations, leaving equations in the others.
How to write it
eliminate(equations, eliminate)
- equations
- The system, in brackets. Takes a list of equations in brackets.
- eliminate
- The variables to eliminate. Takes a variable, or a list of variables.
Examples
eliminate([x + y = 1, x - y = 0], [y])In the solver,
Open in the solvereliminate([x + y = 1, x - y = 0], [y])gives[x - 1/2 = 0].
Related functions
- find_instance
A point that meets a condition, or an empty list when there is none.
- solve_identity
Find the values of the parameters that make an equation true for every value of the variable.
- find_root
Find a root numerically, from a starting value.
- solve_all
Describe the complete solution set of equations and inequalities.
- least_squares
The least-squares solution of A x = b.
- solve
Solve equations for one or more unknowns.